3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = []; public function baz() { if (false !== $this->bar[0] = set(11)) { echo 'YES!'; } } } $foo = new Foo; $foo->baz(); function set($param) { if ($param > 10) { return $param; } return 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.3.60.0160.00616.75
8.3.50.0160.00622.00
8.3.40.0070.00718.54
8.3.30.0110.00718.88
8.3.20.0040.00420.29
8.3.10.0050.00223.66
8.3.00.0080.00019.78
8.2.180.0090.01218.29
8.2.170.0140.00322.96
8.2.160.0070.00720.29
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0090.00017.73
8.2.110.0030.00621.94
8.2.100.0080.00417.63
8.2.90.0050.00319.26
8.2.80.0050.00317.97
8.2.70.0040.00417.63
8.2.60.0050.00317.92
8.2.50.0000.00818.07
8.2.40.0080.00019.33
8.2.30.0070.00019.50
8.2.20.0000.00717.78
8.2.10.0000.00718.20
8.2.00.0040.00418.12
8.1.280.0070.00725.92
8.1.270.0070.00722.12
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00622.52
8.1.230.0100.00317.48
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.23
8.1.180.0000.00818.10
8.1.170.0050.00318.49
8.1.160.0030.00521.95
8.1.150.0040.00418.70
8.1.140.0030.00617.27
8.1.130.0000.00917.64
8.1.120.0030.00317.46
8.1.110.0000.00817.41
8.1.100.0050.00217.46
8.1.90.0030.00317.41
8.1.80.0040.00417.46
8.1.70.0000.00717.44
8.1.60.0040.00417.48
8.1.50.0000.00817.55
8.1.40.0000.00817.43
8.1.30.0000.01217.56
8.1.20.0040.00417.59
8.1.10.0000.00717.57
8.1.00.0000.00817.55
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00818.45
8.0.270.0030.00317.26
8.0.260.0080.00017.37
8.0.250.0000.00716.91
8.0.240.0000.00816.82
8.0.230.0000.00716.93
8.0.220.0030.00316.75
8.0.210.0020.00516.74
8.0.200.0030.00316.76
8.0.190.0040.00416.77
8.0.180.0050.00316.75
8.0.170.0020.00516.85
8.0.160.0000.00816.80
8.0.150.0050.00316.78
8.0.140.0000.00716.77
8.0.130.0030.00613.18
8.0.120.0000.00716.82
8.0.110.0040.00416.86
8.0.100.0070.00016.82
8.0.90.0040.00416.83
8.0.80.0120.00316.80
8.0.70.0040.00416.84
8.0.60.0040.00416.70
8.0.50.0040.00416.71
8.0.30.0070.01017.11
8.0.20.0120.00617.40
8.0.10.0080.00016.81
8.0.00.0130.00616.72
7.4.330.0020.00215.15
7.4.320.0060.00016.59
7.4.300.0000.00616.55
7.4.290.0030.00316.47
7.4.280.0040.00416.59
7.4.270.0060.00016.53
7.4.260.0070.00016.48
7.4.250.0040.00416.57
7.4.240.0000.00716.47
7.4.230.0030.00316.41
7.4.220.0090.00916.57
7.4.210.0090.00916.55
7.4.200.0030.00316.48
7.4.160.0030.01216.46
7.4.150.0110.00817.40
7.4.140.0150.01117.86
7.4.130.0060.01116.57
7.4.120.0120.00516.50
7.4.110.0070.01116.45
7.4.100.0120.00616.44
7.4.90.0170.00016.36
7.4.80.0090.00919.39
7.4.70.0070.01016.66
7.4.60.0150.00016.55
7.4.50.0090.00016.50
7.4.40.0030.01316.46
7.4.30.0140.00716.49
7.4.00.0000.01315.05
7.3.330.0000.00513.38
7.3.320.0000.00513.37
7.3.310.0070.00016.40
7.3.300.0030.00316.42
7.3.290.0030.00316.25
7.3.280.0070.00816.38
7.3.270.0070.01117.40
7.3.260.0090.00916.38
7.3.240.0140.00316.36
7.3.230.0140.00316.55
7.3.210.0120.00616.31
7.3.200.0060.01016.29
7.3.190.0030.01616.46
7.3.180.0070.01016.18
7.3.170.0060.01316.27
7.3.160.0040.01316.45
7.2.330.0070.01116.59
7.2.320.0100.00716.56
7.2.310.0090.00816.69
7.2.300.0060.01016.46
7.2.290.0160.00916.48
7.2.00.0090.00919.23
7.1.100.0080.00017.88
7.1.70.0090.00317.09
7.1.60.0040.00719.27
7.1.50.0150.00616.86
7.1.00.0000.07722.33
7.0.200.0000.00916.76
7.0.60.0300.06320.04
7.0.50.0100.08017.94
7.0.40.0070.07719.96
7.0.30.0170.04320.17
7.0.20.0300.05720.20
7.0.10.0100.06320.32
7.0.00.0070.06720.32
5.6.280.0000.03720.90
5.6.210.0030.07720.55
5.6.200.0030.05718.12
5.6.190.0070.09320.47
5.6.180.0300.07320.77
5.6.170.0300.06720.50
5.6.160.0130.07718.19
5.6.150.0030.04018.18
5.6.140.0200.06718.17
5.6.130.0000.06318.13
5.6.120.0100.03721.13
5.6.110.0030.04721.12
5.6.100.0070.05721.02
5.6.90.0170.07720.99
5.6.80.0000.08720.51
5.5.350.0100.04020.39
5.5.340.0130.07717.93
5.5.330.0070.04020.43
5.5.320.0230.04720.44
5.5.310.0270.07720.23
5.5.300.0070.08317.98
5.5.290.0100.07017.96
5.5.280.0000.04720.66
5.5.270.0100.08020.89
5.5.260.0130.06320.65
5.5.250.0130.07720.77
5.5.240.4200.04020.27
5.4.450.1100.05719.50
5.4.440.1370.07319.55
5.4.430.0870.07719.58
5.4.420.0870.06319.13
5.4.410.0970.06719.43
5.4.400.0870.06019.08
5.4.390.0970.06319.33
5.4.380.0970.05018.77
5.4.370.0770.07319.11
5.4.360.1070.06018.77
5.4.350.1170.04319.13
5.4.340.0800.07718.73
5.4.320.0870.06319.26
5.4.310.0930.05319.09
5.4.300.1130.06718.94
5.4.290.1070.06018.77
5.4.280.0900.06319.26
5.4.270.0930.05018.76
5.4.260.1000.05319.32
5.4.250.1170.05719.27
5.4.240.0970.08018.99
5.4.230.1170.05319.17
5.4.220.1030.07718.94
5.4.210.0870.07319.10
5.4.200.0230.06319.17
5.4.190.0170.05719.32
5.4.180.0100.07718.89
5.4.170.0630.06719.07
5.4.160.0900.05319.18
5.4.150.0930.06719.18
5.4.140.0730.05016.45
5.4.130.1100.05716.51
5.4.120.1000.08016.38
5.4.110.0930.05016.48
5.4.100.0900.05316.24
5.4.90.0970.06716.64
5.4.80.0970.06716.66
5.4.70.0200.03016.59
5.4.60.0230.03016.49
5.4.50.0000.05016.51
5.4.40.0100.05316.43
5.4.30.0000.04016.51
5.4.20.0200.03716.42

preferences:
48.66 ms | 401 KiB | 5 Q