3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '1234'; $failed = false; try{ $testcopy = $test; $testcopy = str_replace( '1' ); }catch(Exception $e){ $failed = true; } if ( ! $failed ) { $test = $testcopy; } var_dump ($test);

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.0110.01118.55
8.3.50.0030.01016.10
8.3.40.0090.00618.71
8.3.30.0070.00719.02
8.3.20.0000.00720.17
8.3.10.0040.00423.53
8.3.00.0060.00317.68
8.2.180.0150.00416.74
8.2.170.0140.00322.96
8.2.160.0150.00020.23
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00422.25
8.2.120.0040.00426.35
8.2.110.0040.00722.27
8.2.100.0090.00317.84
8.2.90.0000.00819.16
8.2.80.0060.00317.97
8.2.70.0110.00017.50
8.2.60.0050.00317.93
8.2.50.0030.00718.10
8.2.40.0050.00322.15
8.2.30.0000.00820.89
8.2.20.0070.00017.93
8.2.10.0000.00718.06
8.2.00.0000.00718.13
8.1.280.0130.00625.92
8.1.270.0040.00422.19
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.02
8.1.230.0070.00419.01
8.1.220.0090.00017.78
8.1.210.0040.00418.77
8.1.200.0050.00617.23
8.1.190.0100.00017.10
8.1.180.0000.00818.10
8.1.170.0030.00618.48
8.1.160.0050.00218.98
8.1.150.0040.00418.83
8.1.140.0040.00419.43
8.1.130.0030.00318.90
8.1.120.0000.00817.41
8.1.110.0040.00417.39
8.1.100.0080.00017.38
8.1.90.0000.00717.34
8.1.80.0000.00817.40
8.1.70.0000.00717.46
8.1.60.0080.00417.53
8.1.50.0040.00417.51
8.1.40.0070.00017.51
8.1.30.0080.00417.58
8.1.20.0020.00517.61
8.1.10.0000.00717.47
8.1.00.0040.00417.44
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.30
8.0.270.0030.00317.04
8.0.260.0000.00716.82
8.0.250.0030.00317.00
8.0.240.0000.00816.98
8.0.230.0070.00017.01
8.0.220.0000.00716.95
8.0.210.0000.00716.91
8.0.200.0070.00016.85
8.0.190.0030.00616.84
8.0.180.0000.00716.91
8.0.170.0000.00716.84
8.0.160.0040.00416.86
8.0.150.0040.00416.88
8.0.140.0040.00416.91
8.0.130.0000.00513.32
8.0.120.0000.00716.91
8.0.110.0000.00716.84
8.0.100.0040.00416.69
8.0.90.0040.00416.71
8.0.80.0140.00316.87
8.0.70.0000.00816.86
8.0.60.0080.00016.73
8.0.50.0000.00716.90
8.0.30.0090.00616.99
8.0.20.0070.01517.40
8.0.10.0040.00416.90
8.0.00.0090.00916.63
7.4.330.0000.00515.55
7.4.320.0000.00616.53
7.4.300.0080.00016.59
7.4.290.0080.00016.44
7.4.280.0060.00316.57
7.4.270.0040.00416.59
7.4.260.0030.00516.49
7.4.250.0030.00316.48
7.4.240.0000.01016.61
7.4.230.0070.00016.48
7.4.220.0150.00316.59
7.4.210.0100.01016.67
7.4.200.0000.00716.41
7.4.160.0080.01016.55
7.4.150.0070.01017.40
7.4.140.0020.01517.86
7.4.130.0030.01316.54
7.4.120.0120.00816.55
7.4.110.0140.00416.51
7.4.100.0030.01516.22
7.4.90.0110.00716.61
7.4.80.0170.00719.39
7.4.70.0030.01316.33
7.4.60.0130.00316.61
7.4.50.0000.01616.44
7.4.40.0070.01116.31
7.4.30.0110.01116.55
7.4.00.0000.01714.88
7.3.330.0000.00513.19
7.3.320.0030.00313.20
7.3.310.0040.00416.24
7.3.300.0030.00316.29
7.3.290.0110.00816.25
7.3.280.0080.01016.29
7.3.270.0130.00917.40
7.3.260.0170.00316.53
7.3.250.0110.00716.38
7.3.240.0130.00616.37
7.3.230.0090.01316.29
7.3.210.0070.01016.20
7.3.200.0030.01316.23
7.3.190.0060.00916.21
7.3.180.0150.00316.41
7.3.170.0040.01416.32
7.3.160.0070.00816.21
7.2.330.0130.01016.45
7.2.320.0070.01016.60
7.2.310.0100.00716.46
7.2.300.0120.00616.54
7.2.290.0140.00616.61
7.2.90.0900.00314.87
7.2.80.0230.00314.62
7.2.70.1230.00614.65
7.2.60.1450.01014.56
7.2.50.1220.00614.68
7.2.40.1340.01015.10
7.2.30.0750.01014.88
7.2.20.0740.01014.60
7.2.10.0780.00014.86
7.2.00.0140.00614.80
7.1.210.0080.00514.02
7.1.200.0180.00913.94
7.1.190.0570.00713.66
7.1.180.0710.00713.82
7.1.170.0830.01013.84
7.1.160.0440.00413.69
7.1.150.0930.01013.69
7.1.140.0310.01013.73
7.1.130.0250.00713.92
7.1.120.1110.00313.93
7.1.110.0100.00914.02
7.1.100.1360.00313.72
7.1.90.1200.01013.82
7.1.80.0210.01013.82
7.1.70.0370.00613.75
7.1.60.0700.00331.72
7.1.50.0190.01531.78
7.1.40.1770.01032.00
7.1.30.1710.00631.80
7.1.20.1490.00931.85
7.1.10.0210.00013.91
7.1.00.1420.00313.53
7.0.310.0900.00013.21
7.0.300.0590.01013.56
7.0.290.0220.00013.50
7.0.280.0520.00913.47
7.0.270.0550.00713.43
7.0.260.1080.01013.45
7.0.250.1340.00313.62
7.0.240.0140.00013.27
7.0.230.0320.00613.57
7.0.220.0140.01113.16
7.0.210.0120.00813.21
7.0.200.0040.01413.64
7.0.190.0170.00413.56
7.0.180.1510.00613.41
7.0.170.2120.01013.41
7.0.160.0080.01113.23
7.0.150.0430.00313.22
7.0.140.1500.00013.54
7.0.130.1470.00713.41
7.0.120.2140.00313.61
7.0.110.1220.01013.38
7.0.100.1240.00313.41
7.0.90.1790.00013.35
7.0.80.1400.00613.63
7.0.70.0940.00613.20
7.0.60.1070.00713.45
7.0.50.1150.00013.58
7.0.40.1160.01313.48
7.0.30.1500.00413.53
7.0.20.1600.00613.24
7.0.10.1030.00313.16
7.0.00.1010.01013.28

preferences:
57.45 ms | 401 KiB | 5 Q