3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $foo = 'foo'; protected $bar = 'two'; private $baz = 'three'; private $for = 4; } $b = (array) new Foo(); var_dump($b["foo"]); var_dump($b["\0*\0bar"]); var_dump($b["\0Foo\0baz"]); var_dump($b["\0Foo\0for"]);

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.0070.01116.38
8.3.50.0120.01322.83
8.3.40.0110.00418.86
8.3.30.0170.00319.04
8.3.20.0000.00820.34
8.3.10.0040.00423.67
8.3.00.0040.00419.25
8.2.180.0080.00816.63
8.2.170.0120.00322.96
8.2.160.0070.01020.38
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0060.00921.04
8.2.110.0030.00622.11
8.2.100.0040.00817.72
8.2.90.0050.00219.05
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0000.01018.07
8.2.40.0000.00817.91
8.2.30.0040.00417.94
8.2.20.0030.00517.67
8.2.10.0040.00418.04
8.2.00.0030.00617.66
8.1.280.0170.00325.92
8.1.270.0060.00323.72
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0030.00623.91
8.1.230.0110.00019.04
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.25
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0050.00218.59
8.1.160.0060.00321.90
8.1.150.0040.00418.73
8.1.140.0040.00417.29
8.1.130.0030.00317.76
8.1.120.0070.00017.31
8.1.110.0060.00317.43
8.1.100.0000.00717.25
8.1.90.0050.00217.34
8.1.80.0080.00017.49
8.1.70.0000.00717.43
8.1.60.0030.00617.47
8.1.50.0040.00417.55
8.1.40.0060.00317.52
8.1.30.0060.00317.53
8.1.20.0040.00417.65
8.1.10.0080.00017.50
8.1.00.0030.00517.45
8.0.300.0070.00018.77
8.0.290.0080.00016.63
8.0.280.0040.00418.38
8.0.270.0000.00717.23
8.0.260.0060.00017.18
8.0.250.0030.00316.89
8.0.240.0060.00016.88
8.0.230.0030.00316.89
8.0.220.0070.00016.79
8.0.210.0030.00516.87
8.0.200.0000.00616.88
8.0.190.0040.00416.93
8.0.180.0000.00716.84
8.0.170.0030.00516.77
8.0.160.0040.00416.82
8.0.150.0040.00416.70
8.0.140.0040.00416.80
8.0.130.0080.00013.13
8.0.120.0000.00816.79
8.0.110.0000.00716.72
8.0.100.0000.00716.69
8.0.90.0030.00316.93
8.0.80.0000.01616.75
8.0.70.0000.00716.78
8.0.60.0000.00716.82
8.0.50.0030.00516.85
8.0.30.0090.01317.00
8.0.20.0130.00917.40
8.0.10.0050.00216.87
8.0.00.0090.00916.81
7.4.330.0000.00515.02
7.4.320.0030.00316.51
7.4.300.0030.00316.64
7.4.290.0070.00016.52
7.4.280.0000.00716.51
7.4.270.0000.00716.64
7.4.260.0080.00316.59
7.4.250.0050.00316.45
7.4.240.0020.00616.54
7.4.230.0030.00316.41
7.4.220.0060.01216.46
7.4.210.0060.01016.53
7.4.200.0000.00716.43
7.4.160.0120.00616.32
7.4.150.0060.01317.40
7.4.140.0110.01117.86
7.4.130.0140.00816.52
7.4.120.0110.00616.48
7.4.110.0060.01016.58
7.4.100.0090.00816.60
7.4.90.0000.01716.38
7.4.80.0070.01019.39
7.4.70.0090.00616.33
7.4.60.0170.00016.67
7.4.50.0000.00516.57
7.4.40.0150.00516.59
7.4.30.0090.00916.39
7.4.00.0100.00314.62
7.3.330.0060.00013.26
7.3.320.0000.00513.23
7.3.310.0030.00316.26
7.3.300.0030.00316.34
7.3.290.0070.00716.22
7.3.280.0070.01116.23
7.3.270.0170.00317.40
7.3.260.0140.00416.61
7.3.250.0130.00516.25
7.3.240.0030.01316.30
7.3.230.0150.00316.39
7.3.210.0150.00716.24
7.3.200.0000.01819.39
7.3.190.0120.00316.32
7.3.180.0140.00716.34
7.3.170.0030.01316.35
7.3.160.0110.00516.25
7.2.330.0120.00616.52
7.2.320.0060.01016.55
7.2.310.0100.00716.73
7.2.300.0110.00716.55
7.2.290.0120.00416.72
7.2.60.0030.01016.70
7.2.00.0060.00919.25
7.1.200.0000.01215.55
7.1.100.0000.01118.09
7.1.70.0080.00017.19
7.1.60.0040.00719.40
7.1.50.0000.02316.58
7.1.00.0030.08722.54
7.0.200.0000.00916.73
7.0.140.0100.06322.21
7.0.60.0100.03720.07
7.0.50.0030.04017.96
7.0.40.0170.08020.25
7.0.30.0600.06020.23
7.0.20.0300.07320.23
7.0.10.0100.07320.25
7.0.00.0100.05020.27
5.6.280.0100.06721.00
5.6.210.0000.04720.54
5.6.200.0130.07318.29
5.6.190.0070.08020.66
5.6.180.0530.07020.48
5.6.170.0200.07320.54
5.6.160.0130.07320.61
5.6.150.0070.08018.25
5.6.140.0130.06718.21
5.6.130.0100.07718.13
5.6.120.0030.09021.05
5.6.110.0000.09720.97
5.6.100.0000.09321.00
5.6.90.0030.08720.98
5.6.80.0100.04320.38
5.5.350.0170.08320.38
5.5.340.0100.07017.95
5.5.330.0030.08720.37
5.5.320.0430.06720.27
5.5.310.0270.07720.34
5.5.300.0030.08018.04
5.5.290.0000.06317.99
5.5.280.0070.04720.95
5.5.270.0130.08020.72
5.5.260.0170.06320.79
5.5.250.0070.05020.67
5.5.240.0030.03720.28
5.4.450.0300.05319.59
5.4.440.0900.06319.43
5.4.430.0070.05719.42
5.4.420.0130.05019.42
5.4.410.0100.05318.94
5.4.400.0130.05018.76
5.4.390.0330.03018.53
5.4.380.0130.06018.84
5.4.370.0000.04318.82
5.4.360.0070.04318.57
5.4.350.0080.03412.02
5.4.340.0140.04812.02
5.4.320.0060.04312.50
5.4.310.0090.03412.49
5.4.300.0070.04012.49
5.4.290.0050.03712.49
5.4.280.0040.04312.39
5.4.270.0050.03612.39
5.4.260.0070.03512.39
5.4.250.0090.04212.39
5.4.240.0050.03612.39
5.4.230.0060.03612.38
5.4.220.0080.03312.38
5.4.210.0030.03712.38
5.4.200.0070.03612.38
5.4.190.0060.03612.38
5.4.180.0050.03712.38
5.4.170.0090.03312.39
5.4.160.0080.03312.39
5.4.150.0070.03412.38
5.4.140.0040.03812.07
5.4.130.0060.03412.06
5.4.120.0080.04112.02
5.4.110.0060.04112.01
5.4.100.0070.03312.01
5.4.90.0060.03512.01
5.4.80.0080.03312.01
5.4.70.0060.03312.00
5.4.60.0040.03512.00
5.4.50.0040.03612.00
5.4.40.0080.03611.99
5.4.30.0030.03811.99
5.4.20.0090.03211.99
5.4.10.0060.04111.98
5.4.00.0090.03911.48
5.3.290.0100.03512.80
5.3.280.0060.04212.70
5.3.270.0050.04212.73
5.3.260.0050.03912.72
5.3.250.0060.03612.71
5.3.240.0060.03612.72
5.3.230.0060.03712.71
5.3.220.0080.04012.68
5.3.210.0060.03912.68
5.3.200.0080.03312.68
5.3.190.0050.03712.68
5.3.180.0040.03712.67
5.3.170.0050.03712.67
5.3.160.0040.03712.67
5.3.150.0090.03412.68
5.3.140.0080.03312.66
5.3.130.0100.03712.65
5.3.120.0070.03712.66
5.3.110.0060.03812.66
5.3.100.0060.03612.12
5.3.90.0060.03612.09
5.3.80.0030.03912.09
5.3.70.0110.03112.09
5.3.60.0060.03612.07
5.3.50.0090.03312.02
5.3.40.0060.03512.02
5.3.30.0050.03411.98
5.3.20.0080.03511.75
5.3.10.0080.03211.72
5.3.00.0060.03611.71
5.2.170.0060.0289.21
5.2.160.0100.0309.21
5.2.150.0060.0329.21
5.2.140.0030.0319.21
5.2.130.0030.0309.17
5.2.120.0020.0299.17
5.2.110.0050.0289.18
5.2.100.0050.0299.18
5.2.90.0030.0309.18
5.2.80.0030.0399.17
5.2.70.0070.0299.17
5.2.60.0030.0309.12
5.2.50.0090.0349.09
5.2.40.0070.0269.07
5.2.30.0080.0269.05
5.2.20.0060.0299.03
5.2.10.0090.0288.93
5.2.00.0030.0308.80
5.1.60.0070.0298.08
5.1.50.0060.0248.08
5.1.40.0060.0228.06
5.1.30.0050.0328.41
5.1.20.0080.0328.43
5.1.10.0060.0338.15
5.1.00.0050.0268.15
5.0.50.0040.0196.63
5.0.40.0050.0176.49
5.0.30.0050.0356.31
5.0.20.0010.0216.27
5.0.10.0030.0196.25
5.0.00.0040.0296.24
4.4.90.0030.0144.78
4.4.80.0030.0184.75
4.4.70.0020.0184.76
4.4.60.0030.0154.75
4.4.50.0040.0134.77
4.4.40.0050.0274.71
4.4.30.0020.0164.76
4.4.20.0030.0144.84
4.4.10.0030.0144.85
4.4.00.0050.0224.76
4.3.110.0000.0184.67
4.3.100.0020.0154.66
4.3.90.0010.0164.63
4.3.80.0030.0234.58
4.3.70.0030.0144.63
4.3.60.0030.0144.62
4.3.50.0040.0134.63
4.3.40.0030.0234.54
4.3.30.0020.0163.30
4.3.20.0030.0153.28
4.3.10.0020.0153.24
4.3.00.0100.0236.85

preferences:
37.31 ms | 401 KiB | 5 Q