3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ function true(){ return true; } function false(){ return false; } function t(){ assert($this->true() === $this->false()); } } $x = new A; $x->t();

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.0120.00616.75
8.3.50.0120.01022.12
8.3.40.0100.00718.79
8.3.30.0090.00618.81
8.3.20.0040.00420.39
8.3.10.0000.00823.60
8.3.00.0080.00019.97
8.2.180.0110.00416.50
8.2.170.0090.00622.96
8.2.160.0110.00320.48
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0050.00321.13
8.2.120.0000.00826.35
8.2.110.0000.01020.37
8.2.100.0120.00017.93
8.2.90.0040.00419.04
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0050.00317.92
8.2.50.0040.00418.07
8.2.40.0030.00621.12
8.2.30.0030.00620.50
8.2.20.0040.00417.59
8.2.10.0040.00417.95
8.2.00.0040.00418.00
8.1.280.0140.00725.92
8.1.270.0030.00620.25
8.1.260.0050.00228.09
8.1.250.0000.00828.09
8.1.240.0060.00322.05
8.1.230.0080.00317.64
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0090.00017.38
8.1.190.0070.00417.23
8.1.180.0030.00618.10
8.1.170.0060.00318.48
8.1.160.0040.00420.70
8.1.150.0000.00718.82
8.1.140.0000.00819.46
8.1.130.0040.00417.50
8.1.120.0030.00517.38
8.1.110.0030.00617.27
8.1.100.0040.00417.39
8.1.90.0000.00717.29
8.1.80.0040.00417.41
8.1.70.0080.00017.31
8.1.60.0000.00917.60
8.1.50.0050.00317.55
8.1.40.0000.00817.58
8.1.30.0040.00417.54
8.1.20.0000.00717.63
8.1.10.0030.00617.59
8.1.00.0030.00517.48
8.0.300.0000.00818.77
8.0.290.0040.00416.63
8.0.280.0030.00318.37
8.0.270.0030.00317.19
8.0.260.0080.00017.20
8.0.250.0000.00716.87
8.0.240.0060.00016.85
8.0.230.0000.00716.92
8.0.220.0040.00416.86
8.0.210.0000.00816.85
8.0.200.0030.00316.93
8.0.190.0000.01116.85
8.0.180.0040.00416.93
8.0.170.0040.00416.95
8.0.160.0030.00516.87
8.0.150.0030.00416.82
8.0.140.0070.00016.70
8.0.130.0060.00013.35
8.0.120.0000.00816.85
8.0.110.0000.00716.86
8.0.100.0030.00316.83
8.0.90.0030.00316.84
8.0.80.0130.00616.95
8.0.70.0040.00416.82
8.0.60.0040.00416.93
8.0.50.0040.00316.79
8.0.30.0110.00817.20
8.0.20.0100.01217.42
8.0.10.0040.00416.88
8.0.00.0110.00616.80
7.4.330.0030.00316.81
7.4.320.0030.00316.61
7.4.300.0000.00716.60
7.4.290.0000.00716.42
7.4.280.0030.00916.48
7.4.270.0030.00316.50
7.4.260.0030.00816.54
7.4.250.0040.00416.35
7.4.240.0030.00316.51
7.4.230.0030.00316.53
7.4.220.0060.01216.54
7.4.210.0030.01316.62
7.4.200.0070.00016.69
7.4.160.0000.01516.36
7.4.150.0190.00317.40
7.4.140.0070.01417.86
7.4.130.0140.00416.47
7.4.120.0110.00516.53
7.4.110.0100.01016.68
7.4.100.0120.00416.42
7.4.90.0060.01216.61
7.4.80.0140.00319.39
7.4.70.0060.00916.55
7.4.60.0090.01316.56
7.4.50.0090.00416.33
7.4.40.0130.00316.64
7.4.30.0150.00616.69
7.4.00.0060.00915.12
7.3.330.0000.00613.34
7.3.320.0030.00313.23
7.3.310.0030.00316.26
7.3.300.0030.00316.38
7.3.290.0100.00616.35
7.3.280.0070.00716.33
7.3.270.0060.01217.40
7.3.260.0140.00316.60
7.3.250.0080.00916.34
7.3.240.0130.00616.36
7.3.230.0130.00316.39
7.3.210.0070.01016.52
7.3.200.0180.00316.32
7.3.190.0180.00316.38
7.3.180.0040.01216.43
7.3.170.0160.00316.36
7.3.160.0130.01016.36
7.2.330.0130.00316.57
7.2.320.0110.00716.41
7.2.310.0060.01116.53
7.2.300.0000.01816.28
7.2.290.0110.00816.49
7.2.60.0140.00316.43
7.2.00.0030.00719.13
7.1.200.0050.00215.83
7.1.100.0070.00717.97
7.1.70.0050.00317.26
7.1.60.0000.02419.05
7.1.50.0040.01816.72
7.1.00.0070.07322.54
7.0.200.0030.00516.47
7.0.60.0030.06019.88
7.0.50.0130.07317.85
7.0.40.0100.04320.11
7.0.30.0170.04720.34
7.0.20.0230.05720.10
7.0.10.0100.06020.19
7.0.00.0030.05720.20
5.6.280.0030.05321.07
5.6.210.0130.07020.61
5.6.200.0030.07718.27
5.6.190.0000.05020.47
5.6.180.1700.05320.78
5.6.170.0230.03720.44
5.6.160.0070.08020.48
5.6.150.0070.03718.14
5.6.140.0070.08318.16
5.6.130.0100.07718.18
5.6.120.0070.04021.06
5.6.110.0100.07720.96
5.6.100.0030.08720.89
5.6.90.0230.05321.03
5.6.80.0200.06020.41
5.5.350.0130.08020.44
5.5.340.0030.08717.91
5.5.330.0170.07320.29
5.5.320.0300.07020.25
5.5.310.0300.06720.28
5.5.300.0100.03318.03
5.5.290.0070.08317.98
5.5.280.0000.05020.87
5.5.270.0030.04720.79
5.5.260.0170.07720.84
5.5.250.0100.03320.59
5.5.240.0200.07720.28

preferences:
59.29 ms | 401 KiB | 5 Q