3v4l.org

run code in 300+ PHP versions simultaneously
<?php $num1 = 5; $num2 = 15; if ($num1 == $num2) {echo 'this is true';} else {echo 'this is not true';} ?>

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.70.0070.00716.63
8.3.60.0070.01116.38
8.3.50.0110.00617.37
8.3.40.0040.01118.67
8.3.30.0070.00718.71
8.3.20.0000.00818.64
8.3.10.0060.00318.77
8.3.00.0120.00017.23
8.2.180.0090.00618.12
8.2.170.0140.00022.96
8.2.160.0030.01021.20
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.89
8.2.110.0070.00321.05
8.2.100.0040.00717.72
8.2.90.0030.00619.34
8.2.80.0040.00419.36
8.2.70.0080.00017.50
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0000.00818.09
8.2.30.0020.00517.93
8.2.20.0000.00917.46
8.2.10.0000.00717.60
8.2.00.0040.00417.71
8.1.280.0120.00625.92
8.1.270.0000.00724.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00522.54
8.1.230.0040.00720.86
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0080.00017.23
8.1.190.0050.00217.52
8.1.180.0000.00818.10
8.1.170.0040.00418.75
8.1.160.0000.00718.91
8.1.150.0040.00418.60
8.1.140.0060.00317.45
8.1.130.0030.00317.84
8.1.120.0000.00717.45
8.1.110.0030.00517.50
8.1.100.0000.00717.39
8.1.90.0000.00717.50
8.1.80.0070.00017.46
8.1.70.0000.00717.44
8.1.60.0030.00517.56
8.1.50.0000.00817.40
8.1.40.0080.00017.55
8.1.30.0030.00617.48
8.1.20.0000.00817.54
8.1.10.0080.00017.40
8.1.00.0060.00317.48
8.0.300.0000.00719.79
8.0.290.0040.00416.63
8.0.280.0080.00018.46
8.0.270.0030.00317.18
8.0.260.0000.00716.80
8.0.250.0040.00416.88
8.0.240.0040.00416.86
8.0.230.0030.00516.89
8.0.220.0050.00216.88
8.0.210.0000.00716.72
8.0.200.0050.00316.93
8.0.190.0000.00816.92
8.0.180.0000.01016.85
8.0.170.0070.00316.76
8.0.160.0040.00416.82
8.0.150.0040.00416.60
8.0.140.0040.00416.67
8.0.130.0000.00613.27
8.0.120.0070.00016.85
8.0.110.0000.00716.87
8.0.100.0040.00416.89
8.0.90.0030.00516.94
8.0.80.0130.00316.80
8.0.70.0000.00716.70
8.0.60.0040.00416.77
8.0.50.0000.00716.73
8.0.30.0040.01316.99
8.0.20.0070.01317.31
8.0.10.0080.00016.95
8.0.00.0130.00616.79
7.4.330.0030.00313.02
7.4.320.0060.00016.46
7.4.300.0060.00016.65
7.4.290.0080.00016.53
7.4.280.0000.00816.59
7.4.270.0000.00716.41
7.4.260.0050.00013.26
7.4.250.0040.00416.51
7.4.240.0070.00016.52
7.4.230.0040.00416.69
7.4.220.0090.01616.37
7.4.210.0090.00716.51
7.4.200.0030.00316.50
7.4.190.0000.00716.41
7.4.160.0110.00716.45
7.4.150.0140.00316.54
7.4.140.0110.00816.46
7.4.130.0100.00716.38
7.4.120.0130.00316.65
7.4.110.0090.00916.52
7.4.100.0140.00316.56
7.4.90.0120.00616.60
7.4.80.0160.00916.36
7.4.70.0100.00716.42
7.4.60.0090.00616.66
7.4.50.0090.00316.51
7.4.40.0080.01116.38
7.4.30.0030.01416.61
7.4.00.0000.01414.75
7.3.330.0030.00313.07
7.3.320.0050.00013.14
7.3.310.0000.00716.27
7.3.300.0070.00016.22
7.3.290.0090.00616.28
7.3.280.0060.01216.20
7.3.270.0090.00916.41
7.3.260.0040.01316.21
7.3.250.0140.00916.32
7.3.240.0060.00916.21
7.3.230.0120.00616.16
7.3.210.0120.00616.44
7.3.200.0110.00919.39
7.3.190.0160.00616.34
7.3.180.0120.00616.20
7.3.170.0000.01616.31
7.3.160.0120.00916.14
7.3.120.0070.00714.55
7.2.330.0200.00316.50
7.2.320.0070.01416.33
7.2.310.0100.00716.55
7.2.300.0160.00016.58
7.2.290.0080.00816.49
7.2.00.0100.00319.08
7.1.100.0070.01018.09
7.1.70.0000.00817.11
7.1.60.0060.01919.40
7.1.50.0080.00416.87
7.1.00.0030.05022.45
7.0.200.0700.00414.52
7.0.140.0030.07322.00
7.0.120.0000.07722.15
7.0.60.0130.08319.95
7.0.50.0030.04017.79
7.0.40.0030.07019.98
7.0.30.0200.05320.02
7.0.20.0270.06020.04
7.0.10.0370.03720.30
7.0.00.0000.04319.95
5.6.280.0070.07021.05
5.6.210.0070.08020.60
5.6.200.0130.08018.12
5.6.190.0000.04720.33
5.6.180.0370.07720.32
5.6.170.0330.07020.48
5.6.160.0030.04320.33
5.6.150.0170.07718.07
5.6.140.0130.08018.18
5.6.130.0070.07718.11
5.6.120.0000.04720.93
5.6.110.0100.08320.96
5.6.100.0100.07321.00
5.6.90.0070.07320.97
5.6.80.0070.05320.36
5.6.70.0300.05320.39
5.5.350.0230.03020.46
5.5.340.0130.07018.01
5.5.330.0000.07720.21
5.5.320.0200.04020.21
5.5.310.0200.07020.17
5.5.300.0030.05718.00
5.5.290.0000.04318.00
5.5.280.0100.07720.76
5.5.270.0170.07720.88
5.5.260.0100.08020.96
5.5.250.0200.06720.54
5.5.240.0130.06020.11
5.4.450.0070.04719.47
5.4.440.0100.07719.46
5.4.430.0070.06719.41
5.4.420.0070.05019.39
5.4.410.0100.03019.34
5.4.400.0000.05718.91
5.4.390.0070.04019.17
5.4.380.0070.05318.80
5.4.370.0100.08319.08
5.4.360.0070.05718.92
5.4.350.0070.04719.14
5.4.340.0030.06319.18
5.4.320.0030.08018.79
5.4.310.0130.06319.10
5.4.300.0030.07318.78
5.4.290.0000.05318.91
5.4.280.0070.07319.17
5.4.270.0100.07319.07
5.4.260.0130.06318.78
5.4.250.0070.05719.13
5.4.240.0070.03719.07
5.4.230.0000.05718.95
5.4.220.0000.05019.17
5.4.210.0000.04719.16
5.4.200.0000.04319.16
5.4.190.0030.04019.17
5.4.180.0070.03719.07
5.4.170.0100.03318.91
5.4.160.0030.04719.16
5.4.150.0070.06019.06
5.4.140.0170.05716.35
5.4.130.0000.04316.34
5.4.120.0030.03316.23
5.4.110.0000.04016.36
5.4.100.0100.02716.34
5.4.90.0000.03716.29
5.4.80.0070.03016.31
5.4.70.0000.03716.22
5.4.60.0030.03316.34
5.4.50.0030.05016.28
5.4.40.0070.04016.21
5.4.30.0030.06716.14
5.4.20.0030.04716.36
5.4.10.0000.04016.25
5.4.00.0000.04715.88
5.3.290.0100.07014.68
5.3.280.0070.06014.52
5.3.270.0070.05014.53
5.3.260.0100.03314.39
5.3.250.0070.04714.44
5.3.240.0000.04014.57
5.3.230.0030.03714.57
5.3.220.0000.04014.65
5.3.210.0030.04014.50
5.3.200.0030.03714.57
5.3.190.0030.03714.48
5.3.180.0000.04014.48
5.3.170.0030.04314.45
5.3.160.0070.03314.64
5.3.150.0070.03314.48
5.3.140.0070.03314.43
5.3.130.0100.04014.63
5.3.120.0030.03714.51
5.3.110.0070.03714.55
5.3.100.0100.03014.13
5.3.90.0000.04014.03
5.3.80.0000.03713.96
5.3.70.0000.04013.99
5.3.60.0030.03714.02
5.3.50.0030.04013.88
5.3.40.0030.03713.91
5.3.30.0030.03713.84
5.3.20.0030.03713.66
5.3.10.0030.03313.59
5.3.00.0100.02713.45
5.2.170.0030.03011.02
5.2.160.0000.03011.07
5.2.150.0030.03011.13
5.2.140.0030.02710.96
5.2.130.0000.03011.07
5.2.120.0070.02311.07
5.2.110.0070.02310.95
5.2.100.0030.02711.25
5.2.90.0030.02711.07
5.2.80.0000.03011.02
5.2.70.0070.02311.08
5.2.60.0070.03310.98
5.2.50.0070.02310.98
5.2.40.0000.03010.88
5.2.30.0030.02710.84
5.2.20.0030.02710.88
5.2.10.0070.02310.86
5.2.00.0000.03010.70
5.1.60.0000.02310.00
5.1.50.0000.0279.98
5.1.40.0000.03310.05
5.1.30.0070.02710.29
5.1.20.0030.04310.38
5.1.10.0000.03310.07
5.1.00.0030.0309.90
5.0.50.0070.0308.69
5.0.40.0000.0238.31
5.0.30.0000.0338.12
5.0.20.0070.0378.18
5.0.10.0070.0278.18
5.0.00.0030.0608.21
4.4.90.0000.0238.03
4.4.80.0000.0208.03
4.4.70.0070.0108.03
4.4.60.0030.0138.03
4.4.50.0000.0178.03
4.4.40.0030.0208.03
4.4.30.0030.0138.03
4.4.20.0000.0238.03
4.4.10.0000.0238.03
4.4.00.0000.0478.03
4.3.110.0000.0208.03
4.3.100.0030.0138.03
4.3.90.0000.0308.03
4.3.80.0070.0538.03
4.3.70.0030.0238.03
4.3.60.0000.0338.03
4.3.50.0070.0178.03
4.3.40.0070.0478.03
4.3.30.0070.0338.03
4.3.20.0000.0278.03
4.3.10.0030.0278.03
4.3.00.0000.0308.03

preferences:
50.15 ms | 401 KiB | 5 Q