3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '1234'; try{ $testcopy = $test; $testcopy = str_replace( '1' ); $test = $testcopy; }catch(Exception $e){ } 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.0140.00716.50
8.3.50.0030.01016.26
8.3.40.0060.00918.85
8.3.30.0040.01118.69
8.3.20.0070.00020.04
8.3.10.0070.00023.52
8.3.00.0080.00017.78
8.2.180.0040.01416.61
8.2.170.0110.00422.96
8.2.160.0060.00920.25
8.2.150.0030.00624.18
8.2.140.0030.00624.66
8.2.130.0040.00422.21
8.2.120.0070.00026.35
8.2.110.0070.00319.30
8.2.100.0110.00018.09
8.2.90.0000.00918.97
8.2.80.0060.00317.97
8.2.70.0100.00017.50
8.2.60.0050.00317.91
8.2.50.0030.00618.10
8.2.40.0000.00822.20
8.2.30.0000.00720.91
8.2.20.0000.00718.03
8.2.10.0000.00718.04
8.2.00.0040.00417.96
8.1.280.0070.01025.92
8.1.270.0000.00823.88
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00622.31
8.1.230.0120.00217.45
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0060.00317.36
8.1.190.0090.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0040.00419.04
8.1.150.0020.00518.68
8.1.140.0000.00719.55
8.1.130.0000.00818.82
8.1.120.0040.00417.38
8.1.110.0000.00917.38
8.1.100.0030.00617.36
8.1.90.0000.00717.28
8.1.80.0040.00417.44
8.1.70.0000.00717.37
8.1.60.0040.00817.49
8.1.50.0000.00817.48
8.1.40.0070.00017.52
8.1.30.0060.00317.61
8.1.20.0070.00017.59
8.1.10.0050.00217.58
8.1.00.0040.00417.54
8.0.300.0030.00618.77
8.0.290.0040.00416.58
8.0.280.0030.00318.31
8.0.270.0030.00317.18
8.0.260.0000.00616.92
8.0.250.0000.00716.86
8.0.240.0030.00516.80
8.0.230.0030.00316.96
8.0.220.0000.00716.90
8.0.210.0000.00716.83
8.0.200.0000.00716.85
8.0.190.0050.00516.98
8.0.180.0000.00716.87
8.0.170.0000.00716.81
8.0.160.0000.00716.84
8.0.150.0040.00316.86
8.0.140.0080.00016.88
8.0.130.0000.00613.27
8.0.120.0000.00716.75
8.0.110.0030.00316.75
8.0.100.0000.00716.76
8.0.90.0040.00416.83
8.0.80.0130.00316.81
8.0.70.0000.00816.92
8.0.60.0040.00416.77
8.0.50.0080.00016.95
8.0.30.0060.01117.02
8.0.20.0090.00917.40
8.0.10.0000.00716.88
8.0.00.0060.01216.61
7.4.330.0020.00215.55
7.4.320.0030.00316.51
7.4.300.0040.00416.46
7.4.290.0070.00016.41
7.4.280.0030.00616.45
7.4.270.0000.00816.32
7.4.260.0030.00316.27
7.4.250.0070.00016.52
7.4.240.0000.00716.50
7.4.230.0070.00016.36
7.4.220.0040.01516.45
7.4.210.0030.01716.59
7.4.200.0070.00016.31
7.4.160.0100.00716.48
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0090.01616.40
7.4.120.0100.01116.47
7.4.110.0110.00616.60
7.4.100.0130.00916.38
7.4.90.0040.01216.40
7.4.80.0120.01519.39
7.4.70.0040.01216.46
7.4.60.0040.01116.51
7.4.50.0070.00716.28
7.4.40.0100.00716.36
7.4.30.0030.01316.42
7.4.00.0040.01114.72
7.3.330.0020.00213.01
7.3.320.0020.00213.13
7.3.310.0000.00816.19
7.3.300.0030.00316.24
7.3.290.0050.01016.25
7.3.280.0070.00916.25
7.3.270.0030.01517.40
7.3.260.0090.01016.36
7.3.250.0090.01016.40
7.3.240.0060.01016.41
7.3.230.0060.01116.33
7.3.210.0100.00716.37
7.3.200.0070.01016.23
7.3.190.0000.01616.32
7.3.180.0060.00916.31
7.3.170.0160.00016.44
7.3.160.0030.01316.31
7.3.10.0000.01616.27
7.3.00.0080.00416.26
7.2.330.0090.01016.41
7.2.320.0070.01016.48
7.2.310.0030.01316.50
7.2.300.0080.01216.55
7.2.290.0130.00716.47
7.2.130.0070.00716.30
7.2.120.0000.01215.81
7.2.110.0030.01316.14
7.2.100.0130.00816.23
7.2.90.0210.00215.67
7.2.80.0510.00815.47
7.2.70.0100.01015.46
7.2.60.0200.00415.72
7.2.50.0490.01115.87
7.2.40.0100.00515.71
7.2.30.0080.01215.60
7.2.20.0270.00515.65
7.2.10.0220.00915.84
7.2.00.0410.00815.83
7.1.250.0070.00715.43
7.1.210.0100.00713.72
7.1.200.0120.00013.74
7.1.190.0150.00313.79
7.1.180.0080.00413.78
7.1.170.0030.01013.71
7.1.160.0960.01113.99
7.1.150.0090.00313.95
7.1.140.0060.00913.69
7.1.130.1070.00313.76
7.1.120.0050.00813.81
7.1.110.1490.00714.04
7.1.100.1770.01013.75
7.1.90.1150.00314.04
7.1.80.0960.00613.53
7.1.70.1360.00313.80
7.1.60.1240.00731.86
7.1.50.0280.01231.88
7.1.40.0520.01131.80
7.1.30.0260.00731.96
7.1.20.1760.00331.82
7.1.10.0990.00713.54
7.1.00.0900.01013.84
7.0.310.0070.00713.45
7.0.300.0060.00613.53
7.0.290.0110.00713.36
7.0.280.0930.00713.55
7.0.270.0090.00913.42
7.0.260.1060.00713.37
7.0.250.1960.01013.43
7.0.240.1790.01013.61
7.0.230.1000.00313.22
7.0.220.1030.00313.67
7.0.210.0940.00713.27
7.0.200.0970.00713.42
7.0.190.0060.00913.29
7.0.180.0100.00313.13
7.0.170.0100.00413.72
7.0.160.0160.00613.36
7.0.150.0160.00713.52
7.0.140.0500.00713.53
7.0.130.1000.01013.46
7.0.120.0970.01413.17
7.0.110.0420.01013.58
7.0.100.0960.00713.52
7.0.90.0090.00613.44
7.0.80.0140.00413.52
7.0.70.1670.00313.67
7.0.60.1350.00013.52
7.0.50.1200.01013.37
7.0.40.1190.00313.34
7.0.30.1020.00613.58
7.0.20.0980.01013.43
7.0.10.0960.00713.51
7.0.00.1370.00713.68

preferences:
53.24 ms | 400 KiB | 5 Q