3v4l.org

run code in 300+ PHP versions simultaneously
<?php function doSomething($string) { $string[0] = strtolower($string[0]); $func = create_function('$c', 'return "_" . strtolower($c[1]);'); return preg_replace_callback('/([A-Z])/', $func, $string); } echo doSomething('JakubStejskal');

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.3.60.0070.01116.61
8.3.50.0140.00421.99
8.3.40.0040.01118.84
8.3.30.0070.00718.97
8.3.20.0050.00320.04
8.3.10.0070.00021.91
8.3.00.0050.00319.38
8.2.180.0090.00916.48
8.2.170.0180.00322.96
8.2.160.0040.00920.28
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0030.00617.63
8.2.120.0040.00426.35
8.2.110.0060.00319.30
8.2.100.0110.00017.93
8.2.90.0080.00019.05
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0050.00517.93
8.2.50.0000.00818.07
8.2.40.0030.00519.39
8.2.30.0030.00320.55
8.2.20.0100.00017.87
8.2.10.0000.00718.00
8.2.00.0000.00718.00
8.1.280.0120.00625.92
8.1.270.0000.00922.09
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0080.00017.64
8.1.230.0120.00017.79
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.00817.23
8.1.180.0000.00818.10
8.1.170.0000.00818.69
8.1.160.0080.00022.02
8.1.150.0000.00718.71
8.1.140.0080.00019.52
8.1.130.0070.00017.70
8.1.120.0050.00217.41
8.1.110.0050.00217.40
8.1.100.0000.00817.44
8.1.90.0040.00417.27
8.1.80.0000.00717.44
8.1.70.0030.00617.39
8.1.60.0070.00317.55
8.1.50.0050.00317.44
8.1.40.0030.00517.34
8.1.30.0040.00417.46
8.1.20.0000.00717.56
8.1.10.0030.00617.52
8.1.00.0080.00017.34
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0050.00318.46
8.0.270.0070.00017.27
8.0.260.0030.00317.33
8.0.250.0000.00617.00
8.0.240.0050.00317.05
8.0.230.0070.00017.06
8.0.220.0030.00316.98
8.0.210.0080.00016.95
8.0.200.0030.00317.06
8.0.190.0080.00016.97
8.0.180.0040.00416.91
8.0.170.0050.00316.91
8.0.160.0000.00717.05
8.0.150.0040.00416.92
8.0.140.0100.00016.87
8.0.130.0000.00513.38
8.0.120.0030.00516.88
8.0.110.0020.00516.99
8.0.100.0070.00016.99
8.0.90.0040.00416.86
8.0.80.0130.01016.88
8.0.70.0000.00817.05
8.0.60.0080.00016.83
8.0.50.0040.00416.76
8.0.30.0070.01217.20
8.0.20.0120.00917.40
8.0.10.0040.00417.13
8.0.00.0130.00816.68
7.4.330.0000.00516.86
7.4.320.0060.00016.93
7.4.300.0000.00616.75
7.4.290.0000.00716.79
7.4.280.0070.00016.72
7.4.270.0030.00316.73
7.4.260.0070.00016.80
7.4.250.0000.00716.68
7.4.240.0020.00516.83
7.4.230.0000.00716.57
7.4.220.0140.00716.76
7.4.210.0030.01716.70
7.4.200.0040.00316.62
7.4.160.0060.01016.88
7.4.150.0100.00717.40
7.4.140.0130.00717.86
7.4.130.0140.00316.83
7.4.120.0090.00816.81
7.4.110.0060.01216.87
7.4.100.0140.00316.79
7.4.90.0180.00316.71
7.4.80.0060.01319.39
7.4.70.0060.01816.83
7.4.60.0040.01216.75
7.4.50.0100.00516.73
7.4.40.0030.01516.61
7.4.30.0120.00916.72
7.4.00.0030.01015.25
7.3.330.0000.00613.55
7.3.320.0000.00713.50
7.3.310.0030.00616.51
7.3.300.0000.00716.44
7.3.290.0060.01016.51
7.3.280.0110.00816.53
7.3.270.0090.00917.40
7.3.260.0110.01016.52
7.3.250.0100.00916.59
7.3.240.0090.00816.50
7.3.230.0150.00816.71
7.3.210.0110.00516.84
7.3.200.0080.00916.58
7.3.190.0070.01016.58
7.3.180.0100.00716.61
7.3.170.0060.00916.56
7.3.160.0030.01316.79
7.2.330.0080.00916.78
7.2.320.0100.00716.96
7.2.310.0090.00816.87
7.2.300.0070.01116.77
7.2.290.0190.00316.63
7.2.60.0060.00917.02
7.2.00.0060.00619.79
7.1.200.0060.00315.95
7.1.100.0040.00818.32
7.1.70.0040.00417.35
7.1.60.0100.01319.36
7.1.50.0100.01417.21
7.1.00.0000.08022.29
7.0.200.0030.00717.11
7.0.60.0170.05719.90
7.0.50.0130.06717.98
7.0.40.0030.04320.23
7.0.30.0300.05720.27
7.0.20.0270.08020.32
7.0.10.0170.08020.27
7.0.00.0100.04020.08
5.6.280.0100.02720.91
5.6.210.0130.08020.70
5.6.200.0070.04318.16
5.6.190.0070.04020.51
5.6.180.0500.07020.58
5.6.170.0100.04720.41
5.6.160.0070.05020.47
5.6.150.0100.07718.15
5.6.140.0070.05718.18
5.6.130.0100.06018.18
5.6.120.0030.08720.92
5.6.110.0200.07321.05
5.6.100.0030.06721.04
5.6.90.0000.05021.01
5.6.80.0070.07020.52
5.5.350.3330.03720.41
5.5.340.0130.07317.99
5.5.330.0070.04320.32
5.5.320.0070.08020.20
5.5.310.0330.04020.27
5.5.300.0070.05017.98
5.5.290.0100.07017.93
5.5.280.0030.06020.96
5.5.270.0100.07720.68
5.5.260.0030.07320.76
5.5.250.0070.08020.59
5.5.240.0200.06320.26

preferences:
35.91 ms | 401 KiB | 5 Q