3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 5; if (isset($i) and $i == 1){ echo "hh"; } if (isset($i) and $i == 2){ echo "hh"; } if (isset($i) and $i == 3){ echo "hh"; } if (isset($i) and $i == 4){ echo "hh"; } if (isset($i) and $i == 5){ echo "hh"; } if (isset($i) and $i == 6){ echo "hh"; } if (isset($i) and $i == 7){ echo "hh"; } if (isset($i) and $i == 8){ echo "hh"; } if (isset($i) and $i == 9){ echo "hh"; } if (isset($i) and $i == 10){ echo "hh"; }

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.0070.01116.49
8.3.50.0110.00722.05
8.3.40.0070.00718.67
8.3.30.0110.00419.09
8.3.20.0070.00020.38
8.3.10.0080.00021.78
8.3.00.0080.00017.91
8.2.180.0120.00618.00
8.2.170.0040.01122.96
8.2.160.0100.00320.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0070.01026.16
8.2.120.0030.00520.90
8.2.110.0140.00322.07
8.2.100.0120.00017.78
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0030.00517.50
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0060.00318.05
8.2.20.0000.00717.77
8.2.10.0040.00418.01
8.2.00.0000.00817.61
8.1.280.0070.00725.92
8.1.270.0040.00422.01
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00022.14
8.1.230.0060.00622.70
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.48
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0030.00518.46
8.1.160.0030.00521.87
8.1.150.0030.00518.79
8.1.140.0050.00417.39
8.1.130.0000.00717.71
8.1.120.0070.00017.36
8.1.110.0040.00417.30
8.1.100.0040.00417.45
8.1.90.0030.00317.35
8.1.80.0040.00417.36
8.1.70.0030.00317.34
8.1.60.0000.00817.46
8.1.50.0090.00017.55
8.1.40.0040.00417.49
8.1.30.0030.00517.71
8.1.20.0000.00817.66
8.1.10.0000.00717.40
8.1.00.0040.00417.44
8.0.300.0000.00918.77
8.0.290.0000.00816.75
8.0.280.0030.00318.32
8.0.270.0070.00017.13
8.0.260.0000.00717.25
8.0.250.0040.00416.85
8.0.240.0040.00416.96
8.0.230.0030.00516.84
8.0.220.0030.00316.86
8.0.210.0040.00416.79
8.0.200.0030.00316.96
8.0.190.0000.00716.99
8.0.180.0000.00716.96
8.0.170.0080.00016.87
8.0.160.0070.00016.87
8.0.150.0080.00016.95
8.0.140.0000.00716.91
8.0.130.0000.00513.26
8.0.120.0030.00616.81
8.0.110.0030.00516.90
8.0.100.0070.00016.90
8.0.90.0030.00316.73
8.0.80.0030.01216.84
8.0.70.0040.00416.70
8.0.60.0050.00316.82
8.0.50.0070.00016.78
8.0.30.0130.01016.87
8.0.20.0130.00717.40
8.0.10.0000.00716.90
8.0.00.0120.00516.79
7.4.330.0020.00215.00
7.4.320.0030.00316.50
7.4.300.0030.00316.51
7.4.290.0040.00416.60
7.4.280.0030.00616.44
7.4.270.0030.00316.55
7.4.260.0050.00216.43
7.4.250.0000.00816.46
7.4.240.0030.00416.54
7.4.230.0070.00016.63
7.4.220.0100.00716.47
7.4.210.0100.01016.38
7.4.200.0070.00016.50
7.4.160.0100.00716.45
7.4.150.0070.01117.40
7.4.140.0130.00717.86
7.4.130.0080.01016.55
7.4.120.0100.00716.47
7.4.110.0070.01016.49
7.4.100.0130.00916.39
7.4.90.0040.01316.48
7.4.80.0070.01419.39
7.4.70.0080.00816.32
7.4.60.0160.00616.55
7.4.50.0000.00816.63
7.4.40.0090.01516.43
7.4.30.0100.01316.56
7.4.00.0030.00914.95
7.3.330.0000.00513.14
7.3.320.0000.00513.09
7.3.310.0040.00416.26
7.3.300.0030.00316.18
7.3.290.0080.00516.26
7.3.280.0090.00816.20
7.3.270.0120.01217.40
7.3.260.0090.01216.50
7.3.250.0060.01316.37
7.3.240.0110.00716.15
7.3.230.0110.00616.39
7.3.210.0140.00316.41
7.3.200.0130.00519.39
7.3.190.0030.01616.22
7.3.180.0280.00916.22
7.3.170.0070.01016.48
7.3.160.0030.01316.20
7.3.120.0090.00614.86
7.3.10.0050.00516.65
7.3.00.0090.00316.71
7.2.330.0120.00616.72
7.2.320.0140.01116.75
7.2.310.0190.00316.38
7.2.300.0070.01016.46
7.2.290.0120.00316.50
7.2.130.0060.00916.69
7.2.120.0060.00916.97
7.2.110.0040.00816.83
7.2.100.0040.00416.94
7.2.90.0030.00716.85
7.2.80.0070.00317.01
7.2.70.0030.00816.91
7.2.60.0040.01116.51
7.2.50.0090.00616.85
7.2.40.0030.01016.95
7.2.30.0100.00316.64
7.2.20.0060.00316.71
7.2.10.0040.00416.96
7.2.00.0050.00918.26
7.1.250.0030.00515.79
7.1.100.0320.00017.28
7.1.70.0000.00716.66
7.1.60.0140.01019.25
7.1.50.0100.01416.71
7.1.00.0030.07322.33
7.0.200.0070.00016.84
7.0.140.0000.07722.18
7.0.60.0030.06719.96
7.0.50.0170.07717.82
7.0.40.0100.06320.05
7.0.30.0400.07320.09
7.0.20.0230.08320.09
7.0.10.0000.05020.09
7.0.00.0030.06320.34
5.6.280.0070.07020.91
5.6.210.0070.04020.77
5.6.200.0130.08018.15
5.6.190.0000.04720.39
5.6.180.0330.05020.60
5.6.170.0270.08020.37
5.6.160.0130.08020.49
5.6.150.0070.03718.22
5.6.140.0000.04018.11
5.6.130.0030.08318.12
5.6.120.0170.07321.06
5.6.110.0070.03721.11
5.6.100.0070.05021.00
5.6.90.0170.09021.05
5.6.80.0230.03020.51
5.5.350.4300.03020.43
5.5.340.0170.06717.97
5.5.330.0100.07320.21
5.5.320.0230.04720.49
5.5.310.0270.05320.33
5.5.300.0100.07317.89
5.5.290.0030.04317.92
5.5.280.0070.04020.88
5.5.270.0030.07720.77
5.5.260.0030.09020.80
5.5.250.0130.07320.77
5.5.240.0030.05320.14
5.4.450.0330.07319.29
5.4.440.0370.05719.48
5.4.430.0400.05719.45
5.4.420.0300.03719.57
5.4.410.0270.05319.41
5.4.400.0330.06319.25
5.4.390.0200.07018.92
5.4.380.0270.04019.24
5.4.370.0330.07019.24
5.4.360.0370.06319.09
5.4.350.0430.05318.93
5.4.340.0270.07719.16
5.4.320.0330.06719.09
5.4.310.0300.06319.10
5.4.300.0230.07719.13
5.4.290.0230.05319.24
5.4.280.0270.07019.05
5.4.270.0300.07319.13
5.4.260.0230.07719.08
5.4.250.0230.06718.78
5.4.240.0200.04019.07
5.4.230.0230.07718.87
5.4.220.0230.05019.07
5.4.210.0330.06018.93
5.4.200.0270.06019.07
5.4.190.0270.07018.91
5.4.180.0300.06318.78
5.4.170.0300.05719.23
5.4.160.0370.04318.86
5.4.150.0370.06318.89
5.4.140.0230.05316.26
5.4.130.0400.05016.54
5.4.120.0200.07316.25
5.4.110.0300.06716.48
5.4.100.0270.05016.48
5.4.90.0230.07716.48
5.4.80.0230.03716.41
5.4.70.0230.07016.37
5.4.60.0300.04016.32
5.4.50.0330.06016.38
5.4.40.0200.07016.36
5.4.30.0270.06716.18
5.4.20.0370.06016.43
5.4.10.0200.04316.36
5.4.00.0170.04315.78
5.3.290.0170.04714.55
5.3.280.0300.07014.51
5.3.270.0270.07314.45
5.3.260.0230.07714.52
5.3.250.0370.06014.64
5.3.240.0300.07014.45
5.3.230.0300.07014.64
5.3.220.0330.06314.42
5.3.210.0370.07014.44
5.3.200.0330.06314.44
5.3.190.0400.05714.51
5.3.180.0200.04714.55
5.3.170.0230.04014.41
5.3.160.0300.06714.43
5.3.150.0230.05314.48
5.3.140.0300.04714.52
5.3.130.0200.04314.52
5.3.120.0330.05714.50
5.3.110.0230.04314.40
5.3.100.0300.07013.91
5.3.90.0300.06313.98
5.3.80.0300.06713.96
5.3.70.0330.06313.80
5.3.60.0270.07013.81
5.3.50.0300.06313.79
5.3.40.0230.06313.73
5.3.30.0330.06013.73
5.3.20.0200.04013.64
5.3.10.0300.05713.46
5.3.00.0230.05013.50
5.2.170.0230.06011.33
5.2.160.0200.05311.33
5.2.150.0200.05011.33
5.2.140.0230.06011.33
5.2.130.0200.06011.33
5.2.120.0170.03711.33
5.2.110.0400.04011.33
5.2.100.0270.05311.33
5.2.90.0200.05011.33
5.2.80.0230.05311.33
5.2.70.0200.03011.33
5.2.60.0300.02711.33
5.2.50.0270.03311.33
5.2.40.0200.02711.33
5.2.30.0170.03011.33
5.2.20.0130.03311.33
5.2.10.0230.04311.33
5.2.00.0170.03311.33
5.1.60.0130.03011.33
5.1.50.0170.05311.33
5.1.40.0170.03011.33
5.1.30.0200.04311.33
5.1.20.0100.03011.33
5.1.10.0170.03711.33
5.1.00.0200.05311.33
5.0.50.0170.03311.33
5.0.40.0100.04311.33
5.0.30.0170.05011.33
5.0.20.0070.02311.33
5.0.10.0100.04711.33
5.0.00.0100.05711.33
4.4.90.0170.02711.33
4.4.80.0100.03311.33
4.4.70.0100.01711.33
4.4.60.0130.04011.33
4.4.50.0100.03311.33
4.4.40.0070.05311.33
4.4.30.0100.02311.33
4.4.20.0100.02711.33
4.4.10.0130.01711.33
4.4.00.0170.04011.33
4.3.110.0100.03011.33
4.3.100.0130.03011.33
4.3.90.0100.02711.33
4.3.80.0100.04311.34
4.3.70.0200.02311.34
4.3.60.0070.02011.34
4.3.50.0030.02711.34
4.3.40.0030.02311.34
4.3.30.0000.01711.34
4.3.20.0030.01711.34
4.3.10.0030.01311.34
4.3.00.0030.03711.34

preferences:
48.31 ms | 401 KiB | 5 Q