3v4l.org

run code in 300+ PHP versions simultaneously
<?php function destroy_the_world() { echo "BOooM, it's g0ne!\n"; /* rm -rf etc */ } function check_if_we_should_destroy_the_world() { return false; /* meh, it's not time yet */ } echo "&&\n"; check_if_we_should_destroy_the_world() && destroy_the_world(); echo "&\n"; check_if_we_should_destroy_the_world() & destroy_the_world(); echo "and\n"; check_if_we_should_destroy_the_world() and destroy_the_world();

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.0090.00616.38
8.3.50.0100.00722.10
8.3.40.0070.01018.75
8.3.30.0070.00718.92
8.3.20.0040.00420.29
8.3.10.0070.00023.48
8.3.00.0000.00820.87
8.2.180.0150.00316.50
8.2.170.0140.00322.96
8.2.160.0130.00720.31
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0140.00026.16
8.2.120.0050.00319.36
8.2.110.0060.00320.27
8.2.100.0040.00717.72
8.2.90.0040.00418.16
8.2.80.0000.00817.97
8.2.70.0070.00317.50
8.2.60.0030.00717.80
8.2.50.0040.00418.07
8.2.40.0060.00319.94
8.2.30.0000.00718.17
8.2.20.0030.00517.73
8.2.10.0060.00317.88
8.2.00.0040.00417.67
8.1.280.0100.00325.92
8.1.270.0040.00423.84
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00622.05
8.1.230.0080.00320.89
8.1.220.0040.00417.74
8.1.210.0050.00318.88
8.1.200.0030.00617.23
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0060.00318.50
8.1.160.0070.00022.01
8.1.150.0000.00818.49
8.1.140.0050.00317.39
8.1.130.0030.00317.75
8.1.120.0030.00317.31
8.1.110.0000.00817.38
8.1.100.0070.00017.40
8.1.90.0070.00017.45
8.1.80.0070.00017.29
8.1.70.0070.00017.36
8.1.60.0000.00717.56
8.1.50.0000.00817.29
8.1.40.0040.00417.38
8.1.30.0030.00517.46
8.1.20.0000.00717.59
8.1.10.0080.00017.43
8.1.00.0070.00017.25
8.0.300.0070.00020.07
8.0.290.0000.00716.75
8.0.280.0070.00018.32
8.0.270.0000.00717.11
8.0.260.0060.00017.07
8.0.250.0070.00016.88
8.0.240.0040.00416.87
8.0.230.0000.00716.89
8.0.220.0030.00316.80
8.0.210.0030.00316.71
8.0.200.0040.00416.95
8.0.190.0040.00416.78
8.0.180.0030.00516.82
8.0.170.0060.00316.84
8.0.160.0000.00716.89
8.0.150.0040.00316.65
8.0.140.0000.00916.68
8.0.130.0030.00313.21
8.0.120.0060.00316.82
8.0.110.0000.00716.72
8.0.100.0040.00416.95
8.0.90.0040.00416.88
8.0.80.0030.01316.88
8.0.70.0040.00416.76
8.0.60.0050.00216.77
8.0.50.0000.00716.68
8.0.30.0110.00817.07
8.0.20.0120.00817.40
8.0.10.0040.00416.93
8.0.00.0100.00716.76
7.4.330.0000.00515.03
7.4.320.0000.00716.43
7.4.300.0000.00616.43
7.4.290.0000.00716.43
7.4.280.0080.00016.52
7.4.270.0030.00316.50
7.4.260.0080.00016.47
7.4.250.0040.00416.43
7.4.240.0050.00216.44
7.4.230.0040.00416.41
7.4.220.0090.01416.39
7.4.210.0080.00616.44
7.4.200.0030.00316.51
7.4.160.0100.01016.39
7.4.150.0170.00017.40
7.4.140.0100.01017.86
7.4.130.0110.00816.58
7.4.120.0100.01016.52
7.4.110.0070.01116.41
7.4.100.0100.00716.41
7.4.90.0120.00916.57
7.4.80.0090.00919.39
7.4.70.0170.00016.36
7.4.60.0070.01116.41
7.4.50.0050.00016.31
7.4.40.0100.00616.65
7.4.30.0120.00416.39
7.4.00.0060.00614.93
7.3.330.0000.00513.20
7.3.320.0050.00013.26
7.3.310.0040.00416.06
7.3.300.0070.00016.29
7.3.290.0070.00716.22
7.3.280.0050.01316.20
7.3.270.0150.00317.40
7.3.260.0070.01116.50
7.3.250.0140.00316.38
7.3.240.0120.00916.38
7.3.230.0060.00916.39
7.3.210.0090.00916.47
7.3.200.0090.00619.39
7.3.190.0070.00716.28
7.3.180.0070.01016.29
7.3.170.0090.00616.61
7.3.160.0090.00616.65
7.3.120.0140.00314.79
7.3.10.0070.01516.10
7.3.00.0220.00716.38
7.2.330.0120.00616.67
7.2.320.0130.00316.70
7.2.310.0060.01016.68
7.2.300.0030.01416.71
7.2.290.0150.00616.61
7.2.130.0080.01316.35
7.2.120.0180.00416.15
7.2.110.0230.01016.77
7.2.100.0130.00316.68
7.2.90.0160.00916.16
7.2.80.0180.00316.86
7.2.70.0200.01116.97
7.2.60.0190.00316.44
7.2.50.0160.00316.31
7.2.40.0140.01116.35
7.2.30.0090.00916.34
7.2.20.0110.00416.22
7.2.10.0130.00716.40
7.2.00.0070.01416.47
7.1.250.0080.00815.22
7.1.70.0030.00917.04
7.1.60.0100.01319.70
7.1.50.0070.01416.75
7.1.00.0130.06722.43
7.0.200.0050.00516.41
7.0.140.0000.07322.09
7.0.80.0130.07719.96
7.0.70.0130.07319.89
7.0.60.0200.07019.89
7.0.50.0100.07720.34
7.0.40.0030.05020.15
7.0.30.0100.08720.05
7.0.20.0100.04020.03
7.0.10.0070.08720.09
7.0.00.0070.04320.08
5.6.280.0100.06321.13
5.6.230.0070.05720.54
5.6.220.0170.08020.71
5.6.210.0070.05020.68
5.6.200.0070.08321.01
5.6.190.0130.05020.94
5.6.180.0130.06721.02
5.6.170.0100.08721.10
5.6.160.0130.03321.00
5.6.150.0030.08321.18
5.6.140.0000.08721.02
5.6.130.0100.08021.08
5.6.120.0100.08021.10
5.6.110.0100.07721.01
5.6.100.0130.08321.11
5.6.90.0100.08020.92
5.6.80.0070.07720.56
5.6.70.0170.06320.50
5.6.60.0100.07720.32
5.6.50.0130.07720.40
5.6.40.0130.07320.36
5.6.30.0000.06020.40
5.6.20.0070.06720.46
5.6.10.0000.08720.29
5.6.00.0070.07720.43
5.5.370.0030.06720.42
5.5.360.0130.07720.44
5.5.350.0070.06720.45
5.5.340.0030.05720.83
5.5.330.0030.04320.93
5.5.320.0030.05020.90
5.5.310.0170.06720.80
5.5.300.0100.08720.82
5.5.290.0030.08020.92
5.5.280.0100.08020.88
5.5.270.0130.07320.82
5.5.260.0070.04720.92
5.5.250.0130.07720.64
5.5.240.0130.06720.03
5.5.230.0070.08020.30
5.5.220.0070.08020.24
5.5.210.0100.07020.27
5.5.200.0170.06720.29
5.5.190.0030.09020.23
5.5.180.0100.07020.13
5.5.160.0030.08320.28
5.5.150.0070.07720.14
5.5.140.0070.06720.27
5.5.130.0030.08020.12
5.5.120.0070.05720.16
5.5.110.0130.07720.11
5.5.100.0070.04320.16
5.5.90.0100.07020.09
5.5.80.0100.07020.05
5.5.70.0030.06020.15
5.5.60.0070.06320.06
5.5.50.0100.08020.15
5.5.40.0100.05320.15
5.5.30.0100.04020.05
5.5.20.0100.07320.08
5.5.10.0030.07320.16
5.5.00.0070.03720.07
5.4.450.0070.04319.38
5.4.440.0130.07719.18
5.4.430.0130.07319.46
5.4.420.0170.06019.54
5.4.410.0130.06719.41
5.4.400.0130.03719.13
5.4.390.0100.04718.90
5.4.380.0100.07719.21
5.4.370.0030.06719.12
5.4.360.0130.07318.88
5.4.350.0130.07019.09
5.4.340.0100.07019.02
5.4.320.0070.05018.94
5.4.310.0100.07319.12
5.4.300.0030.04019.20
5.4.290.0130.07019.21
5.4.280.0070.08019.20
5.4.270.0070.07318.88
5.4.260.0030.07719.04
5.4.250.0030.07719.18
5.4.240.0030.07719.04
5.4.230.0100.04319.04
5.4.220.0130.04018.86
5.4.210.0100.04018.94
5.4.200.0130.06719.17
5.4.190.0100.07319.24
5.4.180.0070.07319.20
5.4.170.0070.07019.20
5.4.160.0070.07319.11
5.4.150.0030.07719.05
5.4.140.0130.05016.25
5.4.130.0000.07016.48
5.4.120.0070.04716.55
5.4.110.0030.07016.52
5.4.100.0000.07716.48
5.4.90.0130.06716.54
5.4.80.0070.07716.54
5.4.70.0100.07016.53
5.4.60.0070.07316.30
5.4.50.0030.07716.34
5.4.40.0070.04316.50
5.4.30.0070.04016.24
5.4.20.0030.07016.30
5.4.10.0070.05016.31
5.4.00.0030.03715.76
5.3.290.0130.06714.67
5.3.280.0030.06014.65
5.3.270.0070.07714.71
5.3.260.0100.03014.54
5.3.250.0070.08014.55
5.3.240.0100.06714.60
5.3.230.0070.07014.59
5.3.220.0030.08314.54
5.3.210.0070.06314.55
5.3.200.0000.06714.63
5.3.190.0030.04714.66
5.3.180.0070.05014.69
5.3.170.0100.07314.59
5.3.160.0070.08014.67
5.3.150.0100.05714.56
5.3.140.0130.05314.57
5.3.130.0100.06714.68
5.3.120.0000.05314.57
5.3.110.0030.06714.47
5.3.100.0030.03714.20
5.3.90.0070.05314.16
5.3.80.0030.07314.00
5.3.70.0030.06714.08
5.3.60.0130.03314.08
5.3.50.0070.07313.85
5.3.40.0000.07713.85
5.3.30.0070.07313.79
5.3.20.0100.06313.67
5.3.10.0030.07713.71
5.3.00.0070.07013.64
5.2.170.0030.06313.61
5.2.160.0030.05713.61
5.2.150.0030.04713.61
5.2.140.0070.06013.61
5.2.130.0000.06013.61
5.2.120.0070.06013.61
5.2.110.0030.06013.61
5.2.100.0070.05713.61
5.2.90.0030.06013.61
5.2.80.0100.05713.61
5.2.70.0100.04713.61
5.2.60.0100.05713.61
5.2.50.0000.07013.61
5.2.40.0030.06013.61
5.2.30.0030.06313.61
5.2.20.0070.06013.61
5.2.10.0030.04313.61
5.2.00.0070.06013.61
5.1.60.0100.03713.61
5.1.50.0030.05713.61
5.1.40.0070.05013.61
5.1.30.0100.05013.61
5.1.20.0070.05013.61
5.1.10.0000.05713.61
5.1.00.0030.04013.61
5.0.50.0030.02313.61
5.0.40.0030.03713.61
5.0.30.0030.06013.61
5.0.20.0070.04313.61
5.0.10.0030.03313.61
5.0.00.0070.05713.61
4.4.90.0030.03313.61
4.4.80.0030.03313.61
4.4.70.0070.01313.61
4.4.60.0000.03313.61
4.4.50.0030.03313.61
4.4.40.0070.03013.61
4.4.30.0000.02713.61
4.4.20.0030.03313.61
4.4.10.0070.01713.61
4.4.00.0000.06013.61
4.3.110.0100.01713.61
4.3.100.0030.02013.61
4.3.90.0030.03713.61
4.3.80.0000.05313.61
4.3.70.0000.03313.61
4.3.60.0000.03713.61
4.3.50.0000.02313.61
4.3.40.0000.04013.61
4.3.30.0030.03313.61
4.3.20.0000.04013.61
4.3.10.0000.01713.61
4.3.00.0000.03313.61

preferences:
60.2 ms | 401 KiB | 5 Q