3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = '1234'; try{ $testcopy = $test; $testcopy = str_replace( '1' ); $test = $testcopy; }catch(Exception $e){ unset($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.0040.01818.30
8.3.50.0110.00416.38
8.3.40.0120.00318.68
8.3.30.0070.01018.77
8.3.20.0000.00720.26
8.3.10.0000.00823.65
8.3.00.0070.00317.87
8.2.180.0090.00616.63
8.2.170.0070.00722.96
8.2.160.0110.00320.35
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0040.00422.14
8.2.120.0000.00726.35
8.2.110.0090.00319.32
8.2.100.0000.01118.03
8.2.90.0040.00418.95
8.2.80.0040.00417.97
8.2.70.0050.00717.38
8.2.60.0000.00817.80
8.2.50.0050.00518.10
8.2.40.0050.00322.38
8.2.30.0030.00520.88
8.2.20.0000.00717.98
8.2.10.0040.00417.93
8.2.00.0040.00418.03
8.1.280.0100.00725.92
8.1.270.0000.00723.78
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.00923.80
8.1.230.0090.00317.52
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0030.00617.35
8.1.180.0030.00518.10
8.1.170.0030.00518.49
8.1.160.0030.00519.04
8.1.150.0050.00318.85
8.1.140.0000.00719.61
8.1.130.0030.00318.76
8.1.120.0050.00317.47
8.1.110.0000.00817.28
8.1.100.0080.00017.38
8.1.90.0040.00417.27
8.1.80.0040.00417.47
8.1.70.0030.00317.28
8.1.60.0040.00817.40
8.1.50.0000.00717.50
8.1.40.0020.00517.38
8.1.30.0090.00317.58
8.1.20.0040.00417.48
8.1.10.0030.00617.52
8.1.00.0070.00017.46
8.0.300.0030.00618.77
8.0.290.0040.00416.58
8.0.280.0030.00318.28
8.0.270.0070.00017.14
8.0.260.0030.00316.79
8.0.250.0070.00016.85
8.0.240.0040.00416.95
8.0.230.0030.00316.97
8.0.220.0030.00316.93
8.0.210.0030.00316.77
8.0.200.0070.00016.94
8.0.190.0080.00016.99
8.0.180.0000.00716.92
8.0.170.0030.00316.77
8.0.160.0020.00516.86
8.0.150.0060.00316.73
8.0.140.0000.00716.73
8.0.130.0000.00513.35
8.0.120.0050.00216.75
8.0.110.0070.00016.91
8.0.100.0040.00416.75
8.0.90.0000.00716.75
8.0.80.0090.00616.85
8.0.70.0050.00316.78
8.0.60.0000.00716.84
8.0.50.0030.00516.77
8.0.30.0110.01016.99
8.0.20.0120.01017.40
8.0.10.0000.00716.87
8.0.00.0100.00716.88
7.4.330.0050.00015.55
7.4.320.0000.00616.53
7.4.300.0070.00016.41
7.4.290.0000.00716.45
7.4.280.0040.00416.42
7.4.270.0030.00616.45
7.4.260.0070.00016.42
7.4.250.0000.00716.39
7.4.240.0050.00316.38
7.4.230.0000.00816.47
7.4.220.0140.00616.37
7.4.210.0060.01116.39
7.4.200.0070.00016.55
7.4.160.0120.00516.35
7.4.150.0170.00017.40
7.4.140.0080.00917.86
7.4.130.0100.00716.32
7.4.120.0080.01116.44
7.4.110.0050.01516.45
7.4.100.0090.00816.49
7.4.90.0100.00616.31
7.4.80.0160.00319.39
7.4.70.0160.00316.49
7.4.60.0080.00816.35
7.4.50.0060.00916.48
7.4.40.0060.01016.51
7.4.30.0000.01716.32
7.4.00.0080.00814.83
7.3.330.0000.00513.16
7.3.320.0000.00513.23
7.3.310.0030.00316.30
7.3.300.0070.00016.23
7.3.290.0080.00716.24
7.3.280.0070.00916.27
7.3.270.0190.00317.40
7.3.260.0090.00916.21
7.3.250.0160.00716.35
7.3.240.0100.00716.34
7.3.230.0120.00916.28
7.3.210.0130.00516.43
7.3.200.0030.01316.36
7.3.190.0100.00616.45
7.3.180.0110.00516.31
7.3.170.0150.00016.42
7.3.160.0130.01016.55
7.3.120.0070.01014.81
7.3.110.0030.01414.80
7.3.100.0050.01214.79
7.3.90.0080.00614.76
7.3.80.0020.01314.90
7.3.70.0100.00414.70
7.3.60.0100.00414.73
7.3.50.0060.00514.74
7.3.40.0080.00614.86
7.3.30.0070.00814.57
7.3.20.0020.01216.75
7.3.10.0050.01216.46
7.3.00.0080.00516.51
7.2.330.0100.01316.29
7.2.320.0130.00316.34
7.2.310.0060.01116.31
7.2.300.0060.01116.31
7.2.290.0100.01316.23
7.2.250.0050.01414.82
7.2.240.0120.00815.09
7.2.230.0030.01015.08
7.2.220.0020.01314.98
7.2.210.0080.00914.91
7.2.200.0040.00914.97
7.2.190.0070.00714.74
7.2.180.0080.00214.70
7.2.170.0080.01014.90
7.2.90.0120.00314.79
7.2.80.0060.00714.81
7.2.70.0540.01014.95
7.2.60.0940.00615.07
7.2.50.0030.01214.90
7.2.40.0510.00014.84
7.2.30.0480.00914.96
7.2.20.0690.00314.80
7.2.10.0100.00714.87
7.2.00.0700.00614.88
7.1.330.0080.00615.64
7.1.320.0070.00515.63
7.1.310.0050.01115.69
7.1.300.0050.00815.81
7.1.290.0040.00915.51
7.1.280.0080.00315.46
7.1.270.0030.01015.46
7.1.260.0060.00615.69
7.1.210.0440.00913.80
7.1.200.0610.00314.01
7.1.190.0580.00313.95
7.1.180.0600.00313.83
7.1.170.0170.00313.66
7.1.160.0450.00613.36
7.1.150.0060.01013.52
7.1.140.0480.00613.96
7.1.130.0400.01313.92
7.1.120.0540.00613.73
7.1.110.0530.00713.52
7.1.100.0460.01013.61
7.1.90.0130.00713.61
7.1.80.0590.00313.85
7.1.70.0620.01413.76
7.1.60.1190.00731.66
7.1.50.1360.00331.81
7.1.40.0890.00631.88
7.1.30.0400.01031.92
7.1.20.1060.00931.63
7.1.10.0620.00713.69
7.1.00.0720.00013.90
7.0.310.0190.00013.50
7.0.300.0650.01013.38
7.0.290.0640.00913.04
7.0.280.0620.00313.48
7.0.270.0520.00313.15
7.0.260.0490.00913.25
7.0.250.0580.00313.29
7.0.240.0660.00013.13
7.0.230.0930.00613.40
7.0.220.0670.00613.48
7.0.210.0720.01313.10
7.0.200.0670.00713.36
7.0.190.0080.00813.52
7.0.180.0880.00713.38
7.0.170.0030.00913.06
7.0.160.0880.00313.44
7.0.150.0090.00313.38
7.0.140.0070.01113.14
7.0.130.0680.01013.39
7.0.120.0600.00713.52
7.0.110.0640.01213.27
7.0.100.0690.00013.17
7.0.90.0480.00313.23
7.0.80.0750.00713.14
7.0.70.0640.00313.33
7.0.60.0740.00313.55
7.0.50.0690.00713.33
7.0.40.0050.00513.61
7.0.30.0070.00413.39
7.0.20.0700.01013.44
7.0.10.0080.00313.34
7.0.00.0100.00713.51

preferences:
51.86 ms | 401 KiB | 5 Q