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( $failed); 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.00718.43
8.3.50.0040.01116.58
8.3.40.0040.01119.02
8.3.30.0110.00418.63
8.3.20.0000.00720.16
8.3.10.0040.00423.65
8.3.00.0080.00017.78
8.2.180.0070.00716.63
8.2.170.0100.00722.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00722.25
8.2.120.0000.00826.35
8.2.110.0050.00522.26
8.2.100.0040.00817.71
8.2.90.0000.00819.01
8.2.80.0050.00317.97
8.2.70.0110.00017.49
8.2.60.0040.00417.80
8.2.50.0050.00518.10
8.2.40.0030.00622.23
8.2.30.0050.00220.85
8.2.20.0070.00018.04
8.2.10.0070.00017.93
8.2.00.0040.00417.97
8.1.280.0120.00625.92
8.1.270.0030.00522.14
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0050.00323.87
8.1.230.0070.00417.83
8.1.220.0030.00617.79
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0000.00917.22
8.1.180.0040.00418.10
8.1.170.0040.00418.45
8.1.160.0000.00719.02
8.1.150.0040.00420.66
8.1.140.0000.00819.52
8.1.130.0030.00318.75
8.1.120.0000.00717.41
8.1.110.0050.00317.32
8.1.100.0000.00817.28
8.1.90.0030.00317.28
8.1.80.0050.00317.33
8.1.70.0070.00017.35
8.1.60.0070.00417.51
8.1.50.0040.00417.41
8.1.40.0020.00517.50
8.1.30.0080.00417.66
8.1.20.0040.00417.54
8.1.10.0060.00317.45
8.1.00.0060.00317.39
8.0.300.0030.00618.77
8.0.290.0060.00316.63
8.0.280.0030.00318.25
8.0.270.0070.00017.20
8.0.260.0070.00016.72
8.0.250.0030.00516.96
8.0.240.0000.00816.84
8.0.230.0000.00816.95
8.0.220.0030.00316.92
8.0.210.0050.00316.94
8.0.200.0070.00017.01
8.0.190.0060.00316.96
8.0.180.0020.00516.92
8.0.170.0020.00516.78
8.0.160.0060.00316.97
8.0.150.0030.00316.93
8.0.140.0040.00416.80
8.0.130.0030.00313.41
8.0.120.0000.00716.81
8.0.110.0030.00316.91
8.0.100.0040.00416.78
8.0.90.0070.00016.76
8.0.80.0110.00416.93
8.0.70.0040.00416.98
8.0.60.0070.00016.71
8.0.50.0080.00016.74
8.0.30.0100.00816.98
8.0.20.0100.00917.40
8.0.10.0070.00016.90
8.0.00.0130.00416.85
7.4.330.0050.00015.55
7.4.320.0070.00016.61
7.4.300.0000.00716.59
7.4.290.0000.00816.51
7.4.280.0060.00316.47
7.4.270.0030.00616.61
7.4.260.0070.00016.47
7.4.250.0070.00016.41
7.4.240.0030.00616.59
7.4.230.0000.00716.70
7.4.220.0040.01516.51
7.4.210.0070.01316.63
7.4.200.0040.00416.70
7.4.160.0110.00716.52
7.4.150.0090.00917.40
7.4.140.0080.01217.86
7.4.130.0100.01016.36
7.4.120.0140.00616.43
7.4.110.0090.00616.46
7.4.100.0170.00316.41
7.4.90.0120.01216.41
7.4.80.0100.01019.39
7.4.70.0110.01116.54
7.4.60.0090.00616.35
7.4.50.0070.00216.31
7.4.40.0130.00316.22
7.4.30.0040.01616.59
7.4.10.0070.01014.83
7.4.00.0090.00614.96
7.3.330.0030.00313.05
7.3.320.0050.00012.99
7.3.310.0000.00716.26
7.3.300.0030.00316.28
7.3.290.0060.01016.21
7.3.280.0060.00916.24
7.3.270.0130.00917.40
7.3.260.0090.01016.34
7.3.250.0110.00716.22
7.3.240.0100.01016.39
7.3.230.0090.00916.46
7.3.210.0040.01316.23
7.3.200.0120.00816.33
7.3.190.0080.00816.50
7.3.180.0140.00316.38
7.3.170.0000.01516.45
7.3.160.0150.00316.20
7.3.130.0030.01614.56
7.3.120.0070.01015.02
7.3.110.0030.01715.02
7.3.100.0060.00914.90
7.3.90.0040.01114.98
7.3.80.0000.01014.92
7.3.70.0060.00614.68
7.3.60.0040.01114.73
7.3.50.0000.00914.79
7.3.40.0030.01214.83
7.3.30.0080.00314.89
7.3.20.0040.00716.39
7.3.10.0070.01016.41
7.3.00.0000.01116.75
7.2.330.0120.00616.63
7.2.320.0100.01316.43
7.2.310.0100.00616.48
7.2.300.0110.00516.43
7.2.290.0090.01316.41
7.2.260.0030.01414.67
7.2.250.0180.00014.83
7.2.240.0130.00015.00
7.2.230.0060.00914.97
7.2.220.0100.00614.59
7.2.210.0070.00715.14
7.2.200.0090.00615.08
7.2.190.0030.01414.94
7.2.180.0090.00614.89
7.2.170.0040.01114.75
7.2.160.0030.01015.08
7.2.150.0030.01216.54
7.2.140.0060.00616.65
7.2.130.0030.00617.04
7.2.120.0000.01116.86
7.2.110.0060.00916.97
7.2.100.0130.00016.75
7.2.90.0490.00515.57
7.2.80.1320.00315.66
7.2.70.0350.00815.80
7.2.60.0100.00715.84
7.2.50.0070.00915.79
7.2.40.0260.00515.70
7.2.30.0060.00715.84
7.2.20.0070.00915.73
7.2.10.0060.00915.73
7.2.00.0160.00115.77
7.1.330.0070.00715.82
7.1.320.0060.00315.85
7.1.310.0040.00815.65
7.1.300.0000.01415.73
7.1.290.0060.01015.77
7.1.280.0040.01215.65
7.1.270.0100.00015.50
7.1.260.0040.00415.85
7.1.250.0040.00715.70
7.1.240.0000.00915.86
7.1.230.0100.00315.83
7.1.220.0090.00315.77
7.1.210.0110.00614.74
7.1.200.0420.00514.63
7.1.190.0090.00714.87
7.1.180.0080.00614.79
7.1.170.0070.00714.83
7.1.160.0330.00814.91
7.1.150.0080.00714.42
7.1.140.0090.00614.50
7.1.130.0090.00314.90
7.1.120.0070.00814.58
7.1.110.0070.00814.69
7.1.100.0090.00314.83
7.1.90.0980.00414.64
7.1.80.0100.00314.72
7.1.70.0850.00714.81
7.1.60.0260.00823.71
7.1.50.0270.00523.62
7.1.40.0790.00723.77
7.1.30.0790.01123.92
7.1.20.0190.01123.61
7.1.10.0190.00814.59
7.1.00.0250.00514.78
7.0.330.0090.00015.38
7.0.320.0030.01015.34
7.0.310.0290.00614.33
7.0.300.1580.01114.53
7.0.290.1190.00714.25
7.0.280.0290.01114.37
7.0.270.0270.00714.33
7.0.260.0250.00214.30
7.0.250.0100.00614.30
7.0.240.0070.00714.35
7.0.230.0360.00814.17
7.0.220.0380.00714.42
7.0.210.0080.00414.38
7.0.200.0080.00414.31
7.0.190.0060.00814.26
7.0.180.0090.00714.32
7.0.170.0080.00814.33
7.0.160.0070.00914.45
7.0.150.0040.01214.43
7.0.140.0150.00714.19
7.0.130.0250.00514.42
7.0.120.0310.00814.28
7.0.110.0050.01014.51
7.0.100.0110.00714.49
7.0.90.0060.00914.55
7.0.80.0600.00414.54
7.0.70.0110.00114.31
7.0.60.0080.00714.30
7.0.50.0120.00814.30
7.0.40.0120.00213.32
7.0.30.0450.00313.47
7.0.20.0340.00913.30
7.0.10.0190.00413.34
7.0.00.0060.00713.25
5.6.400.0060.00614.04
5.6.390.0080.00414.52
5.6.380.0040.00814.64
5.6.370.0040.01114.50
5.6.360.0030.01014.60
5.6.350.0040.00714.54
5.6.340.0040.01114.30
5.6.330.0040.00813.89
5.6.320.0040.00714.21
5.6.310.0070.01013.97
5.6.300.0000.01514.46
5.6.290.0130.00014.23
5.6.280.0000.00814.16
5.6.270.0070.00714.18
5.6.260.0070.00714.47
5.6.250.0030.01014.20
5.6.240.0040.01114.32
5.6.230.0000.01114.32
5.6.220.0060.00314.42
5.6.210.0060.00614.25
5.6.200.0030.00914.04
5.6.190.0060.00914.19
5.6.180.0070.00714.20
5.6.170.0030.00714.04
5.6.160.0030.01014.38
5.6.150.0070.01014.38
5.6.140.0070.00714.30
5.6.130.0090.00014.32
5.6.120.0100.00314.41
5.6.110.0000.01214.13
5.6.100.0100.00314.36
5.6.90.0040.00714.07
5.6.80.0030.00714.18
5.6.70.0060.00314.24
5.6.60.0120.00013.97
5.6.50.0040.01114.17
5.6.40.0100.00014.01
5.6.30.0080.00514.20
5.6.20.0030.01314.43
5.6.10.0030.00614.25
5.6.00.0110.00314.17

preferences:
55.05 ms | 400 KiB | 5 Q