3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar; } $foo = new \Foo(); $foo->bar = 'bar'; $arr['foo'] = $foo; echo $arr['foo']->bar;

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.0200.00018.31
8.3.50.0110.00921.14
8.3.40.0060.00918.79
8.3.30.0140.00018.83
8.3.20.0060.01218.66
8.3.10.0150.00320.94
8.3.00.0060.00321.64
8.2.180.0170.00316.50
8.2.170.0170.00322.96
8.2.160.0070.01020.11
8.2.150.0070.00724.18
8.2.140.0090.00024.66
8.2.130.0100.00726.16
8.2.120.0080.00021.02
8.2.110.0130.00021.07
8.2.100.0090.00318.16
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0030.00518.10
8.2.40.0000.00820.63
8.2.30.0030.00319.30
8.2.20.0030.00617.52
8.2.10.0040.00417.75
8.2.00.0050.00317.59
8.1.280.0090.00625.92
8.1.270.0080.00023.99
8.1.260.0140.00326.35
8.1.250.0070.00728.09
8.1.240.0090.00022.61
8.1.230.0040.00720.37
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.00
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0040.00418.53
8.1.160.0040.00422.13
8.1.150.0040.00418.54
8.1.140.0040.00417.33
8.1.130.0000.00717.68
8.1.120.0000.00717.37
8.1.110.0030.00517.34
8.1.100.0030.00317.21
8.1.90.0000.00817.40
8.1.80.0070.00017.38
8.1.70.0000.00717.30
8.1.60.0030.00617.44
8.1.50.0080.00017.30
8.1.40.0050.00317.45
8.1.30.0000.00817.58
8.1.20.0080.00017.59
8.1.10.0040.00417.54
8.1.00.0000.00717.46
8.0.300.0030.00518.77
8.0.290.0000.00716.88
8.0.280.0000.00818.36
8.0.270.0030.00317.29
8.0.260.0030.00316.72
8.0.250.0000.00716.93
8.0.240.0050.00316.94
8.0.230.0050.00216.96
8.0.220.0030.00316.91
8.0.210.0070.00016.85
8.0.200.0050.00316.84
8.0.190.0040.00416.86
8.0.180.0040.00416.95
8.0.170.0030.00516.92
8.0.160.0070.00016.85
8.0.150.0000.00716.90
8.0.140.0070.00016.82
8.0.130.0000.00513.30
8.0.120.0040.00416.88
8.0.110.0020.00516.73
8.0.100.0040.00416.83
8.0.90.0000.00716.95
8.0.80.0060.01216.86
8.0.70.0000.00716.88
8.0.60.0000.00716.79
8.0.50.0040.00416.71
8.0.30.0120.00617.10
8.0.20.0050.01817.40
8.0.10.0070.00016.86
8.0.00.0080.01016.70
7.4.330.0000.00516.67
7.4.320.0030.00316.33
7.4.300.0030.00316.45
7.4.290.0030.00316.58
7.4.280.0030.00516.41
7.4.270.0080.00016.35
7.4.260.0030.00313.19
7.4.250.0000.00716.41
7.4.240.0080.00016.58
7.4.230.0030.00316.59
7.4.220.0090.00916.49
7.4.210.0080.00816.50
7.4.200.0000.00716.32
7.4.190.0000.00716.59
7.4.160.0130.00416.81
7.4.150.0100.01017.40
7.4.140.0080.00917.86
7.4.130.0080.01016.46
7.4.120.0080.01016.45
7.4.110.0110.00616.41
7.4.100.0060.01616.46
7.4.90.0130.01016.51
7.4.80.0040.01719.39
7.4.70.0100.01016.64
7.4.60.0100.00716.53
7.4.50.0000.00816.49
7.4.40.0060.00922.77
7.4.30.0090.00916.39
7.4.00.0060.01214.96
7.3.330.0020.00213.12
7.3.320.0040.00413.24
7.3.310.0030.00316.21
7.3.300.0000.00716.15
7.3.290.0060.01216.19
7.3.280.0080.00816.25
7.3.270.0070.01017.40
7.3.260.0110.01018.24
7.3.250.0080.01116.49
7.3.240.0160.00416.63
7.3.230.0070.01416.51
7.3.210.0120.00616.20
7.3.200.0130.00619.39
7.3.190.0130.00716.22
7.3.180.0030.01216.56
7.3.170.0090.00616.36
7.3.160.0140.00716.54
7.3.120.0030.01014.74
7.2.330.0030.01516.67
7.2.320.0060.01216.29
7.2.310.0120.01216.57
7.2.300.0130.00316.47
7.2.290.0110.00516.26
7.2.60.0090.00616.75
7.1.200.0070.00415.44
7.1.100.0030.00517.69
7.1.70.0050.00517.09
7.1.60.0090.01519.08
7.1.50.0100.01416.91
7.1.00.0030.03722.41
7.0.200.0040.00416.85
7.0.140.0030.07022.00
7.0.60.0170.07019.91
7.0.50.0070.07317.73
7.0.40.0130.07320.02
7.0.30.0270.07320.20
7.0.20.0370.07320.20
7.0.10.0300.07020.15
7.0.00.0100.07020.10
5.6.280.0000.06721.07
5.6.210.0000.04320.48
5.6.200.0130.06018.29
5.6.190.0030.08020.46
5.6.180.0230.07320.50
5.6.170.0370.08020.48
5.6.160.0130.07720.48
5.6.150.0070.04318.19
5.6.140.0030.05018.28
5.6.130.0070.08318.18
5.6.120.0100.05320.89
5.6.110.0130.07720.98
5.6.100.0070.08021.02
5.6.90.0000.04720.97
5.6.80.0000.04020.33
5.6.70.2470.03320.47
5.5.350.0370.07320.45
5.5.340.0070.04018.08
5.5.330.0030.04020.27
5.5.320.0170.04020.43
5.5.310.0170.04320.32
5.5.300.0100.06317.97
5.5.290.0170.07718.04
5.5.280.0070.06020.84
5.5.270.0130.08020.79
5.5.260.0070.08320.84
5.5.250.0200.06720.58
5.5.240.0170.08320.26
5.4.450.0300.06719.52
5.4.440.0200.06719.55
5.4.430.0230.04019.48
5.4.420.0200.04319.41
5.4.410.0200.04019.36
5.4.400.0170.06719.15
5.4.390.0200.03319.24
5.4.380.0170.04319.15
5.4.370.0200.03719.19
5.4.360.0230.05719.22
5.4.350.0300.06318.85
5.4.340.0230.04019.06
5.4.320.0230.07019.31
5.4.310.0130.05319.09
5.4.300.0230.04719.14
5.4.290.0300.05718.96
5.4.280.0200.06319.19
5.4.270.0270.06719.09
5.4.260.0230.07019.30
5.4.250.0300.05019.08
5.4.240.0270.07319.21
5.4.230.0230.06719.19
5.4.220.0270.05719.07
5.4.210.0200.07319.19
5.4.200.0300.05719.09
5.4.190.0270.07018.97
5.4.180.0230.07319.13
5.4.170.0300.06318.93
5.4.160.0300.06019.07
5.4.150.0270.07019.29
5.4.140.0400.06016.52
5.4.130.0270.06016.34
5.4.120.0200.05716.59
5.4.110.0270.05016.56
5.4.100.0270.04016.51
5.4.90.0370.05716.37
5.4.80.0130.08316.52
5.4.70.0170.07016.54
5.4.60.0270.06316.34
5.4.50.0270.04016.45
5.4.40.0230.07016.34
5.4.30.0200.07016.41
5.4.20.0300.06316.51
5.4.10.0230.08016.32
5.4.00.0200.05315.76
5.3.290.0270.04314.55
5.3.280.0230.06714.49
5.3.270.0230.06314.64
5.3.260.0230.07714.50
5.3.250.0200.06314.50
5.3.240.0230.07014.51
5.3.230.0230.05714.70
5.3.220.0300.05314.48
5.3.210.0300.06714.71
5.3.200.0230.05014.57
5.3.190.0270.07014.78
5.3.180.0270.04714.64
5.3.170.0270.06714.55
5.3.160.0200.06314.47
5.3.150.0230.05014.54
5.3.140.0230.05314.52
5.3.130.0230.07314.44
5.3.120.0200.05714.62
5.3.110.0230.06314.76
5.3.100.0270.07013.96
5.3.90.0300.06014.09
5.3.80.0300.06313.94
5.3.70.0270.06714.09
5.3.60.0200.06713.90
5.3.50.0270.06314.16
5.3.40.0270.04014.16
5.3.30.0230.07013.82
5.3.20.0270.07013.57
5.3.10.0170.07313.55
5.3.00.0200.06713.85
5.2.170.0200.03712.29
5.2.160.0230.05312.29
5.2.150.0200.06012.29
5.2.140.0330.05012.29
5.2.130.0200.04312.29
5.2.120.0130.05712.29
5.2.110.0130.04012.29
5.2.100.0230.05312.29
5.2.90.0200.05012.29
5.2.80.0200.03312.29
5.2.70.0230.05312.29
5.2.60.0100.04312.29
5.2.50.0170.06012.29
5.2.40.0230.05012.29
5.2.30.0200.04012.29
5.2.20.0170.05712.29
5.2.10.0200.04012.29
5.2.00.0170.06012.29
5.1.60.0130.04312.29
5.1.50.0230.05312.29
5.1.40.0200.04012.29
5.1.30.0130.06012.29
5.1.20.0230.04712.29
5.1.10.0130.03312.29
5.1.00.0230.02312.29
5.0.50.0100.04012.29
5.0.40.0100.03712.29
5.0.30.0100.04712.29
5.0.20.0070.03012.29
5.0.10.0100.02312.29
5.0.00.0070.04312.29
4.4.90.0100.03012.29
4.4.80.0100.02312.29
4.4.70.0130.01712.29
4.4.60.0100.03712.29
4.4.50.0130.02012.29
4.4.40.0200.04312.29
4.4.30.0170.02312.29
4.4.20.0070.03712.29
4.4.10.0070.03712.29
4.4.00.0070.05312.29
4.3.110.0130.01712.29
4.3.100.0100.02712.29
4.3.90.0100.01712.29
4.3.80.0070.03312.29
4.3.70.0030.03312.29
4.3.60.0070.02712.29
4.3.50.0200.01312.29
4.3.40.0130.03012.29
4.3.30.0030.03012.29
4.3.20.0130.02312.29
4.3.10.0030.03712.29
4.3.00.0070.02712.29

preferences:
46.19 ms | 401 KiB | 5 Q