3v4l.org

run code in 300+ PHP versions simultaneously
<?php $word = "word,!pineapple--pizza"; $revd = preg_replace_callback('#([A-Za-z]+)#', 'rev_first', $word); function rev_first($matches){ return strrev($matches[1]); } var_dump($revd);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.20.0100.01017.89
8.4.10.0030.00617.74
8.3.150.0040.00418.78
8.3.140.0090.00920.47
8.3.130.0130.00618.47
8.3.120.0030.01318.87
8.3.110.0000.00820.94
8.3.100.0100.00724.06
8.3.90.0130.00726.77
8.3.80.0080.00017.97
8.3.70.0040.01116.75
8.3.60.0140.00718.43
8.3.50.0120.00723.00
8.3.40.0110.00318.93
8.3.30.0150.00419.09
8.3.20.0060.00320.16
8.3.10.0080.00023.61
8.3.00.0080.00819.50
8.2.270.0080.01118.84
8.2.260.0000.00819.25
8.2.250.0160.00318.41
8.2.240.0040.00419.00
8.2.230.0060.00322.58
8.2.220.0080.00037.54
8.2.210.0070.00726.77
8.2.200.0100.00018.66
8.2.190.0090.00616.84
8.2.180.0160.00316.75
8.2.170.0040.01122.96
8.2.160.0000.01321.13
8.2.150.0070.00424.18
8.2.140.0080.00024.66
8.2.130.0160.00326.16
8.2.120.0090.00021.28
8.2.110.0050.00521.09
8.2.100.0080.00417.91
8.2.90.0090.00017.75
8.2.80.0090.00518.81
8.2.70.0030.00517.75
8.2.60.0060.00317.75
8.2.50.0050.00317.75
8.2.40.0000.00719.28
8.2.30.0030.00517.71
8.2.20.0000.00717.80
8.2.10.0040.00418.16
8.2.00.0050.00217.70
8.1.310.0050.00516.48
8.1.300.0030.00616.61
8.1.290.0060.00630.84
8.1.280.0100.00725.92
8.1.270.0000.00823.96
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00019.26
8.1.230.0090.00320.97
8.1.220.0000.00817.74
8.1.210.0000.00818.83
8.1.200.0050.00317.47
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0000.00818.83
8.1.160.0040.00418.76
8.1.150.0050.00218.86
8.1.140.0000.00717.49
8.1.130.0040.00417.85
8.1.120.0040.00417.57
8.1.110.0080.00017.46
8.1.100.0040.00417.64
8.1.90.0070.00017.50
8.1.80.0000.00817.52
8.1.70.0000.00817.48
8.1.60.0030.00617.49
8.1.50.0000.00817.62
8.1.40.0000.00817.67
8.1.30.0040.00417.71
8.1.20.0040.00417.61
8.1.10.0040.00417.55
8.1.00.0060.00317.58
8.0.300.0000.00919.90
8.0.290.0050.00316.88
8.0.280.0050.00218.13
8.0.270.0030.00318.08
8.0.260.0000.00617.21
8.0.250.0030.00317.06
8.0.240.0040.00417.05
8.0.230.0030.00316.91
8.0.220.0030.00317.02
8.0.210.0040.00416.90
8.0.200.0000.00716.93
8.0.190.0060.00317.03
8.0.180.0000.00816.98
8.0.170.0080.00017.02
8.0.160.0000.00716.91
8.0.150.0000.00716.82
8.0.140.0030.00416.91
8.0.130.0030.00313.48
8.0.120.0040.00416.95
8.0.110.0040.00417.02
8.0.100.0000.00717.00
8.0.90.0030.00317.04
8.0.80.0070.00716.89
8.0.70.0060.00316.92
8.0.60.0030.00616.88
8.0.50.0040.00416.84
8.0.30.0120.01016.99
8.0.20.0130.00617.40
8.0.10.0070.00017.16
8.0.00.0090.00917.03
7.4.330.0050.00015.00
7.4.320.0060.00016.64
7.4.300.0000.00816.73
7.4.290.0040.00416.63
7.4.280.0000.00816.73
7.4.270.0040.00416.76
7.4.260.0060.00316.76
7.4.250.0020.00516.64
7.4.240.0030.00316.66
7.4.230.0040.00416.85
7.4.220.0060.01116.82
7.4.210.0100.00716.64
7.4.200.0070.00016.65
7.4.160.0040.01116.60
7.4.150.0160.00917.40
7.4.140.0070.01317.86
7.4.130.0060.01016.73
7.4.120.0070.00916.64
7.4.110.0090.00916.54
7.4.100.0120.00916.47
7.4.90.0030.01416.66
7.4.80.0170.00019.39
7.4.70.0080.00816.75
7.4.60.0100.00716.70
7.4.50.0080.00816.63
7.4.40.0100.00716.67
7.4.30.0130.00316.45
7.4.20.0070.01016.49
7.4.10.0060.01016.56
7.4.00.0050.01215.93
7.3.330.0000.00613.36
7.3.320.0030.00313.19
7.3.310.0060.00316.24
7.3.300.0030.00316.27
7.3.290.0030.00316.27
7.3.280.0090.00816.36
7.3.270.0130.01017.40
7.3.260.0130.00316.64
7.3.250.0130.00616.69
7.3.240.0100.00616.38
7.3.230.0170.00016.39
7.3.210.0080.00816.45
7.3.200.0120.00919.39
7.3.190.0040.02016.48
7.3.180.0060.01216.64
7.3.170.0070.01116.58
7.3.160.0110.00716.27
7.3.150.0040.01416.34
7.3.140.0050.01416.44
7.3.130.0070.01016.61
7.3.120.0040.01116.26
7.3.110.0070.01116.46
7.3.100.0090.00916.79
7.3.90.0100.00716.56
7.3.80.0060.01116.31
7.3.70.0090.00715.71
7.3.60.0110.00815.78
7.3.50.0070.01115.62
7.3.40.0050.01115.59
7.3.30.0080.00815.69
7.3.20.0050.01316.59
7.3.10.0080.00816.58
7.3.00.0060.01016.57
7.2.330.0090.00916.55
7.2.320.0100.00616.87
7.2.310.0120.00616.79
7.2.300.0130.00316.72
7.2.290.0110.00816.70
7.2.280.0090.00916.63
7.2.270.0030.01316.66
7.2.260.0090.00916.75
7.2.250.0070.01016.61
7.2.240.0090.00916.59
7.2.230.0090.00916.53
7.2.220.0100.01716.83
7.2.210.0090.01016.41
7.2.200.0080.00915.79
7.2.190.0130.00515.69
7.2.180.0030.01215.90
7.2.170.0080.00815.94
7.2.160.0040.01115.86
7.2.150.0090.00816.66
7.2.140.0040.01516.88
7.2.130.0070.01016.85
7.2.120.0090.00717.00
7.2.110.0090.00816.79
7.2.100.0080.00916.76
7.2.90.0120.00716.84
7.2.80.0070.00816.92
7.2.70.0070.00916.90
7.2.60.0060.00816.82
7.2.50.0080.00916.82
7.2.40.0060.00916.85
7.2.30.0110.00716.89
7.2.20.0100.01116.81
7.2.10.0090.00816.92
7.2.00.0080.01016.74
7.1.330.0160.00615.50
7.1.320.0200.00615.47
7.1.310.0120.00915.59
7.1.300.0140.00415.83
7.1.290.0080.00815.81
7.1.280.0120.00715.78
7.1.270.0100.00815.85
7.1.260.0140.00815.63
7.1.250.0120.00515.88
7.1.240.0160.00715.68
7.1.230.0260.00215.76
7.1.220.0160.00715.78
7.1.210.0160.00715.88
7.1.200.0090.00715.70
7.1.190.0160.00415.79
7.1.180.0130.00615.73
7.1.170.0100.01215.72
7.1.160.0170.00615.59
7.1.150.0140.01015.67
7.1.140.0250.00815.80
7.1.130.0160.01215.87
7.1.120.0210.00615.74
7.1.110.0150.01215.88
7.1.100.0150.00915.86
7.1.90.0150.01015.76
7.1.80.0170.01515.89
7.1.70.0160.00516.31
7.1.60.0160.01017.08
7.1.50.0130.01216.32
7.1.40.0270.01015.79
7.1.30.0180.01315.88
7.1.20.0210.01015.85
7.1.10.0210.00715.94
7.1.00.0130.03317.92
7.0.330.0140.00515.30
7.0.320.0180.00515.34
7.0.310.0160.00615.20
7.0.300.0180.00215.38
7.0.290.0120.00915.42
7.0.280.0190.00315.19
7.0.270.0230.00715.40
7.0.260.0160.01115.45
7.0.250.0210.00815.39
7.0.240.0190.00715.57
7.0.230.0190.00815.50
7.0.220.0230.00315.33
7.0.210.0140.01315.54
7.0.200.0390.01015.27
7.0.190.0160.01415.49
7.0.180.0210.00515.43
7.0.170.0210.00815.46
7.0.160.0150.01015.48
7.0.150.0210.00815.49
7.0.140.0110.03417.56
7.0.130.0170.00815.29
7.0.120.0210.00615.51
7.0.110.0210.00915.54
7.0.100.0140.01515.56
7.0.90.0190.01015.31
7.0.80.0190.01115.31
7.0.70.0150.01115.59
7.0.60.0200.02916.96
7.0.50.0150.01716.17
7.0.40.0130.01716.13
7.0.30.0080.02416.20
7.0.20.0150.02016.31
7.0.10.0160.01216.15
7.0.00.0190.03116.11
5.6.400.0190.00815.03
5.6.390.0090.01115.05
5.6.380.0080.01214.97
5.6.370.0180.00214.97
5.6.360.0130.01215.10
5.6.350.0110.01115.09
5.6.340.0100.01315.21
5.6.330.0200.01015.29
5.6.320.0140.01414.98
5.6.310.0180.01315.21
5.6.300.0210.00915.24
5.6.290.0170.01115.05
5.6.280.0150.02817.14
5.6.270.0250.00515.10
5.6.260.0190.01015.11
5.6.250.0230.00515.05
5.6.240.0230.00815.33
5.6.230.0190.00815.08
5.6.220.0210.00915.07
5.6.210.0110.02916.96
5.6.200.0130.02016.03
5.6.190.0160.01716.09
5.6.180.0110.02016.25
5.6.170.0120.01916.25
5.6.160.0100.03216.08
5.6.150.0110.03415.99
5.6.140.0110.03916.07
5.6.130.0160.03216.17
5.6.120.0110.03016.06
5.6.110.0140.02015.95
5.6.100.0140.02816.08
5.6.90.0170.02216.31
5.6.80.0110.02115.89
5.6.70.0090.02815.86
5.6.60.0090.02515.79
5.6.50.0120.03215.88
5.6.40.0150.03015.80
5.6.30.0130.02315.80
5.6.20.0120.03115.96
5.6.10.0080.02315.83
5.6.00.0100.03615.89
5.5.380.0140.01215.28
5.5.370.0130.01114.88
5.5.360.0130.01214.99
5.5.350.0190.03016.74
5.5.340.0080.02216.01
5.5.330.0130.01515.96
5.5.320.0100.02215.97
5.5.310.0070.02115.88
5.5.300.0130.03416.08
5.5.290.0090.02616.07
5.5.280.0140.03416.03
5.5.270.0120.03316.04
5.5.260.0140.02315.97
5.5.250.0110.03715.93
5.5.240.0110.03615.77
5.5.230.0140.03215.74
5.5.220.0090.03715.87
5.5.210.0100.03415.77
5.5.200.0160.03215.85
5.5.190.0120.03015.63
5.5.180.0170.02515.82
5.5.170.0180.01114.99
5.5.160.0100.02515.75
5.5.150.0120.02515.87
5.5.140.0160.03015.69
5.5.130.0110.03215.79
5.5.120.0130.03215.73
5.5.110.0140.01815.84
5.5.100.0130.02115.66
5.5.90.0100.02215.71
5.5.80.0140.03015.75
5.5.70.0150.01815.72
5.5.60.0100.03315.69
5.5.50.0090.03015.70
5.5.40.0150.02715.69
5.5.30.0120.02715.76
5.5.20.0110.02315.71
5.5.10.0140.01715.61
5.5.00.0130.02215.69
5.4.450.0150.02414.65
5.4.440.0120.02214.56
5.4.430.0100.03114.52
5.4.420.0070.02714.52
5.4.410.0140.02114.35
5.4.400.0100.02014.33
5.4.390.0100.01914.33
5.4.380.0060.02714.38
5.4.370.0100.02714.37
5.4.360.0130.02914.40
5.4.350.0070.02414.30
5.4.340.0110.02814.42
5.4.330.0150.00512.00
5.4.320.0140.02614.33
5.4.310.0110.02614.31
5.4.300.0170.02114.34
5.4.290.0080.02514.40
5.4.280.0110.02114.29
5.4.270.0090.02114.39
5.4.260.0090.01714.34
5.4.250.0110.02614.37
5.4.240.0080.01914.33
5.4.230.0090.01914.41
5.4.220.0100.02714.34
5.4.210.0100.02014.33
5.4.200.0070.02714.33
5.4.190.0110.01814.29
5.4.180.0080.01914.41
5.4.170.0070.02414.41
5.4.160.0110.01714.30
5.4.150.0080.02414.36
5.4.140.0080.02213.46
5.4.130.0140.02813.53
5.4.120.0080.01813.54
5.4.110.0100.02813.43
5.4.100.0110.02013.39
5.4.90.0060.02113.49
5.4.80.0150.01513.52
5.4.70.0120.02813.47
5.4.60.0110.01913.46
5.4.50.0100.02813.49
5.4.40.0080.03313.46
5.4.30.0120.02413.48
5.4.20.0100.02313.43
5.4.10.0110.02913.54
5.4.00.0110.02313.33

preferences:
70.19 ms | 403 KiB | 5 Q