3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = []; } $foo = new Foo; if (false !== $foo->bar[0] = 1) { echo 'YES!'; }

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.0080.00818.18
8.3.60.0110.01116.63
8.3.50.0090.01121.16
8.3.40.0060.01118.88
8.3.30.0150.00418.55
8.3.20.0040.00420.38
8.3.10.0040.00423.61
8.3.00.0060.00319.68
8.2.180.0090.00918.41
8.2.170.0070.01122.96
8.2.160.0130.00020.52
8.2.150.0060.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00317.38
8.2.110.0170.00021.14
8.2.100.0040.00817.84
8.2.90.0040.00419.10
8.2.80.0000.00817.97
8.2.70.0050.00317.63
8.2.60.0050.00318.16
8.2.50.0070.00318.10
8.2.40.0060.00319.45
8.2.30.0070.00019.33
8.2.20.0000.00717.68
8.2.10.0070.00017.93
8.2.00.0050.00218.05
8.1.280.0110.00425.92
8.1.270.0060.01622.10
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0040.00422.09
8.1.230.0110.00017.83
8.1.220.0050.00317.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0080.00017.35
8.1.180.0050.00318.10
8.1.170.0050.00318.53
8.1.160.0070.00021.82
8.1.150.0050.00318.69
8.1.140.0040.00417.26
8.1.130.0030.00717.55
8.1.120.0070.00017.31
8.1.110.0070.00017.36
8.1.100.0040.00417.31
8.1.90.0000.00717.27
8.1.80.0000.00817.37
8.1.70.0070.00017.30
8.1.60.0040.00417.54
8.1.50.0050.00317.45
8.1.40.0060.00317.39
8.1.30.0070.00717.39
8.1.20.0050.00317.65
8.1.10.0080.00017.58
8.1.00.0040.00417.34
8.0.300.0050.00320.02
8.0.290.0000.00816.75
8.0.280.0050.00218.38
8.0.270.0040.00417.24
8.0.260.0000.00917.24
8.0.250.0000.00816.93
8.0.240.0000.00816.88
8.0.230.0000.00816.90
8.0.220.0030.00316.85
8.0.210.0070.00016.87
8.0.200.0030.00316.89
8.0.190.0040.00416.91
8.0.180.0080.00016.74
8.0.170.0040.00416.84
8.0.160.0040.00416.79
8.0.150.0050.00216.80
8.0.140.0040.00416.81
8.0.130.0000.00713.25
8.0.120.0050.00316.70
8.0.110.0060.00316.81
8.0.100.0040.00416.89
8.0.90.0030.00316.74
8.0.80.0130.00616.89
8.0.70.0040.00416.89
8.0.60.0030.00316.82
8.0.50.0040.00416.78
8.0.30.0080.01016.92
8.0.20.0130.00617.40
8.0.10.0040.00417.00
8.0.00.0090.01116.80
7.4.330.0020.00215.14
7.4.320.0060.00016.50
7.4.300.0000.00616.40
7.4.290.0050.00316.52
7.4.280.0030.00616.57
7.4.270.0000.00816.52
7.4.260.0040.00416.46
7.4.250.0000.00816.45
7.4.240.0040.00416.58
7.4.230.0030.00316.62
7.4.220.0210.00716.63
7.4.210.0030.01116.57
7.4.200.0030.00316.53
7.4.160.0070.01416.61
7.4.150.0130.00617.40
7.4.140.0120.01217.86
7.4.130.0100.01016.41
7.4.120.0110.00716.51
7.4.110.0150.00316.38
7.4.100.0090.01216.54
7.4.90.0110.00716.65
7.4.80.0140.00319.39
7.4.70.0120.00916.55
7.4.60.0080.00816.46
7.4.50.0040.00416.39
7.4.40.0070.01016.50
7.4.30.0130.01016.23
7.4.00.0080.00814.84
7.3.330.0020.00213.27
7.3.320.0020.00213.04
7.3.310.0000.00816.14
7.3.300.0030.00316.30
7.3.290.0070.00016.29
7.3.280.0110.00616.32
7.3.270.0090.00917.40
7.3.260.0030.01416.24
7.3.240.0060.01216.37
7.3.230.0170.00016.40
7.3.210.0030.01316.43
7.3.200.0170.00016.50
7.3.190.0030.01316.60
7.3.180.0100.00716.24
7.3.170.0080.00816.32
7.3.160.0070.01016.52
7.2.330.0060.01216.48
7.2.320.0040.01316.43
7.2.310.0130.00716.43
7.2.300.0130.00316.48
7.2.290.0000.01716.64
7.2.00.0060.00619.13
7.1.100.0040.00817.91
7.1.70.0000.01417.16
7.1.60.0000.01016.98
7.1.50.0120.00916.86
7.1.00.0100.07022.48
7.0.200.0060.00916.52
7.0.60.0030.06720.00
7.0.50.0000.04317.85
7.0.40.0130.08320.09
7.0.30.0200.04720.15
7.0.20.0330.03720.12
7.0.10.0070.08320.06
7.0.00.0130.06720.24
5.6.280.0030.03321.07
5.6.210.0170.07320.47
5.6.200.0070.08318.18
5.6.190.0100.06020.61
5.6.180.0330.07020.46
5.6.170.0230.08320.39
5.6.160.0070.04320.44
5.6.150.0130.07018.27
5.6.140.0030.04018.28
5.6.130.0130.05018.25
5.6.120.0070.04721.08
5.6.110.0130.07721.04
5.6.100.0100.06721.11
5.6.90.0130.07321.11
5.6.80.0130.06320.51
5.6.70.4200.04020.36
5.5.350.0300.05320.44
5.5.340.0100.07717.96
5.5.330.0130.05720.47
5.5.320.0500.06320.32
5.5.310.0270.07720.22
5.5.300.0000.06017.91
5.5.290.0000.04717.98
5.5.280.0030.05020.80
5.5.270.0030.04020.76
5.5.260.0000.08720.77
5.5.250.0100.08020.70
5.5.240.0270.06320.26
5.4.450.0330.05719.43
5.4.440.0300.07019.40
5.4.430.0430.07719.10
5.4.420.0330.07719.43
5.4.410.0230.05719.33
5.4.400.0270.05019.23
5.4.390.0070.06318.90
5.4.380.0270.05019.23
5.4.370.0270.06018.77
5.4.360.0570.05718.81
5.4.350.0200.07019.18
5.4.340.0170.08319.09
5.4.320.0130.09019.09
5.4.310.0200.07019.09
5.4.300.0430.06018.94
5.4.290.0400.06719.00
5.4.280.0300.06018.79
5.4.270.0330.06318.95
5.4.260.0170.05319.10
5.4.250.0130.05318.99
5.4.240.0270.05718.89
5.4.230.0330.05019.16
5.4.220.0470.08718.90
5.4.210.0330.07319.07
5.4.200.0270.06319.22
5.4.190.0230.04718.91
5.4.180.0370.04319.08
5.4.170.0170.06319.25
5.4.160.0100.06319.05
5.4.150.0330.08018.74
5.4.140.0170.07716.34
5.4.130.0200.06716.45
5.4.120.0100.08316.27
5.4.110.0330.05316.51
5.4.100.0270.05716.57
5.4.90.0270.06316.25
5.4.80.0470.05716.59
5.4.70.0130.03716.44
5.4.60.0200.03316.55
5.4.50.0070.05716.22
5.4.40.0030.07716.34
5.4.30.0070.04716.21
5.4.20.0200.03316.55

preferences:
59.38 ms | 401 KiB | 5 Q