3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; if($a){ echo 'true'; }else { echo 'false'; }

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.1rc20.0040.00416.86
8.1rc10.0040.00416.93
8.0.100.0070.00016.76
8.0.90.0000.00716.71
8.0.80.0090.00616.76
8.0.70.0040.00416.70
8.0.60.0000.00716.69
8.0.50.0070.00016.87
8.0.30.0090.00917.04
8.0.20.0110.01517.40
8.0.10.0030.00516.89
8.0.00.0090.00916.50
7.4.230.0000.00716.51
7.4.220.0120.00316.59
7.4.210.0090.00716.51
7.4.200.0040.00416.55
7.4.190.0030.00316.38
7.4.160.0120.00416.45
7.4.150.0060.01217.40
7.4.140.0080.01417.86
7.4.130.0080.00816.37
7.4.120.0080.00916.39
7.4.110.0130.00316.32
7.4.100.0080.01116.45
7.4.90.0140.00416.36
7.4.80.0090.00916.39
7.4.70.0060.01216.46
7.4.60.0070.01016.32
7.4.50.0000.00816.48
7.4.40.0140.00322.77
7.4.30.0150.00316.41
7.4.00.0000.01414.78
7.3.300.0070.00016.18
7.3.290.0060.01216.19
7.3.280.0080.00616.14
7.3.270.0080.00917.40
7.3.260.0060.01216.46
7.3.250.0160.00416.16
7.3.240.0130.00316.37
7.3.230.0140.00316.47
7.3.210.0140.00316.21
7.3.200.0130.00419.39
7.3.190.0070.01316.39
7.3.180.0030.01916.36
7.3.170.0110.00516.43
7.3.160.0040.01116.04
7.3.120.0000.00814.89
7.3.10.0070.00716.68
7.3.00.0080.00416.67
7.2.330.0140.00316.66
7.2.320.0110.00616.66
7.2.310.0130.00316.33
7.2.300.0030.01316.34
7.2.290.0170.00416.20
7.2.130.0060.01116.86
7.2.120.0040.01116.85
7.2.110.0030.01016.75
7.2.100.0070.00416.77
7.2.90.0040.00816.52
7.2.80.0000.01216.79
7.2.70.0030.00916.74
7.2.60.0000.01416.77
7.2.50.0000.01216.50
7.2.40.0000.01516.82
7.2.30.0060.00616.79
7.2.20.0000.00916.79
7.2.10.0000.00916.82
7.2.00.0030.00818.04
7.1.250.0040.00415.76
7.1.100.0000.01118.20
7.1.70.0000.00816.98
7.1.60.0000.02519.32
7.1.50.0100.00316.64
7.1.00.0030.07722.54
7.0.200.0050.00316.49
7.0.140.0070.07021.93
7.0.60.0000.05719.96
7.0.50.0170.07317.88
7.0.40.0030.05320.09
7.0.30.0100.05320.21
7.0.20.0330.06020.13
7.0.10.0230.04020.13
7.0.00.0130.06720.17
5.6.280.0070.07020.89
5.6.210.0030.04320.71
5.6.200.0070.05018.19
5.6.190.0200.07320.54
5.6.180.0070.05020.50
5.6.170.0270.07020.54
5.6.160.0070.06720.51
5.6.150.0030.08718.19
5.6.140.0100.07718.21
5.6.130.0030.08318.07
5.6.120.0170.06021.00
5.6.110.0170.06720.96
5.6.100.0000.08321.07
5.6.90.0070.08321.02
5.6.80.0070.07720.40
5.6.70.0200.06320.37
5.5.350.0330.07020.29
5.5.340.0170.07017.98
5.5.330.0100.07720.15
5.5.320.0130.07720.23
5.5.310.0200.07320.32
5.5.300.0100.04317.96
5.5.290.0100.07717.91
5.5.280.0100.05320.79
5.5.270.0170.07320.86
5.5.260.0070.05320.86
5.5.250.0000.08720.60
5.5.240.0030.07720.34
5.4.450.0230.04719.59
5.4.440.1000.04719.61
5.4.430.1000.05019.44
5.4.420.0970.05719.48
5.4.410.0900.05319.14
5.4.400.0270.06718.80
5.4.390.0170.05718.59
5.4.380.0130.06018.77
5.4.370.0100.04018.72
5.4.360.0100.03718.66
5.4.350.0030.03711.97
5.4.340.0070.03511.96
5.4.320.0060.04712.45
5.4.310.0100.04012.45
5.4.300.0050.04412.45
5.4.290.0020.05912.45
5.4.280.0100.03812.34
5.4.270.0060.04712.34
5.4.260.0080.04512.35
5.4.250.0100.04112.35
5.4.240.0070.04612.34
5.4.230.0060.04712.34
5.4.220.0080.03912.34
5.4.210.0090.03612.34
5.4.200.0080.04112.34
5.4.190.0210.06712.33
5.4.180.0180.04112.33
5.4.170.0220.03612.34
5.4.160.0160.04412.34
5.4.150.0170.04712.34
5.4.140.0180.04512.02
5.4.130.0150.04412.00
5.4.120.0230.04211.96
5.4.110.0130.04811.96
5.4.100.0390.08211.96
5.4.90.0160.04411.96
5.4.80.0410.08111.96
5.4.70.0130.04611.95
5.4.60.0140.04211.95
5.4.50.0170.04511.95
5.4.40.0170.04111.95
5.4.30.0090.05111.95
5.4.20.0170.04311.95
5.4.10.0180.04011.95
5.4.00.0160.04211.43
5.3.290.0050.05612.80
5.3.280.0050.04412.71
5.3.270.0160.04912.72
5.3.260.0280.06612.72
5.3.250.0120.05312.72
5.3.240.0270.06712.72
5.3.230.0210.04712.71
5.3.220.0200.04612.68
5.3.210.0160.05012.68
5.3.200.0310.06012.68
5.3.190.0180.04812.68
5.3.180.0220.04012.67
5.3.170.0180.04412.67
5.3.160.0200.04812.67
5.3.150.0290.09612.68
5.3.140.0170.05012.66
5.3.130.0510.10512.65
5.3.120.0150.05212.66
5.3.110.0160.04712.66
5.3.100.0130.05012.12
5.3.90.0360.08312.09
5.3.80.0120.05012.08
5.3.70.0170.04512.07
5.3.60.0190.05212.07
5.3.50.0350.08612.00
5.3.40.0160.04812.00
5.3.30.0140.04711.96
5.3.20.0250.06311.73
5.3.10.0180.03811.69
5.3.00.0140.04511.67
5.2.170.0140.0339.18
5.2.160.0150.0399.18
5.2.150.0180.0329.18
5.2.140.0450.0949.18
5.2.130.0170.0359.14
5.2.120.0140.0339.14
5.2.110.0120.0389.14
5.2.100.0140.0379.14
5.2.90.0270.0819.13
5.2.80.0180.0299.13
5.2.70.0160.0349.13
5.2.60.0290.0499.09
5.2.50.0120.0359.05
5.2.40.0130.0359.03
5.2.30.0150.0339.00
5.2.20.0130.0339.00
5.2.10.0130.0348.91
5.2.00.0100.0378.77
5.1.60.0120.0308.07
5.1.50.0100.0328.06
5.1.40.0090.0318.04
5.1.30.0100.0338.39
5.1.20.0100.0318.42
5.1.10.0120.0308.14
5.1.00.0100.0318.14
5.0.50.0070.0276.62
5.0.40.0090.0226.48
5.0.30.0090.0356.29
5.0.20.0140.0476.27
5.0.10.0100.0216.24
5.0.00.0080.0356.23
4.4.90.0080.0174.78
4.4.80.0070.0174.76
4.4.70.0070.0184.76
4.4.60.0100.0154.75
4.4.50.0070.0174.77
4.4.40.0070.0284.71
4.4.30.0050.0204.76
4.4.20.0080.0164.84
4.4.10.0050.0204.84
4.4.00.0060.0294.76
4.3.110.0030.0214.66
4.3.100.0070.0174.66
4.3.90.0050.0194.63
4.3.80.0070.0274.58
4.3.70.0060.0184.63
4.3.60.0100.0144.63
4.3.50.0180.0364.63
4.3.40.0080.0264.54
4.3.30.0040.0193.28
4.3.20.0100.0133.27
4.3.10.0020.0203.23
4.3.00.0000.0236.96

preferences:
15.25 ms | 454 KiB | 5 Q