3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ArrayObjectChild extends ArrayObject { public function offsetExists($offset) { var_dump('Called: '.__METHOD__); return parent::offsetExists($offset); } public function offsetGet($offset) { var_dump('Called: '.__METHOD__); return parent::offsetGet($offset); } } $array = array('foo' => ''); echo "ArrayObject: empty string is set, but empty:\n"; $object = new ArrayObject($array); var_dump(isset($object['foo']), empty($object['foo']), $object->offsetExists('foo'), $object->offsetGet('foo')); echo "ArrayObject extended: empty string is set, but not empty\n"; $object = new ArrayObjectChild($array); var_dump(isset($object['foo']), empty($object['foo']), $object->offsetExists('foo'), $object->offsetGet('foo'));

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.40.0040.01819.02
8.3.30.0180.00319.14
8.3.20.0040.00420.29
8.3.10.0000.00822.13
8.3.00.0080.00022.46
8.2.170.0080.00822.96
8.2.160.0100.00319.20
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00919.55
8.2.110.0030.00622.02
8.2.100.0080.00318.03
8.2.90.0070.00019.40
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0130.00317.90
8.2.50.0060.00618.07
8.2.40.0090.00018.22
8.2.30.0000.00718.02
8.2.20.0040.00417.63
8.2.10.0000.00817.71
8.2.00.0060.00317.66
8.1.270.0060.00318.66
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0060.00323.88
8.1.230.0070.00419.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0040.00417.43
8.1.180.0000.00918.61
8.1.170.0050.00518.51
8.1.160.0040.00422.14
8.1.150.0040.00418.62
8.1.140.0000.00817.42
8.1.130.0070.00017.85
8.1.120.0040.00417.33
8.1.110.0070.00017.48
8.1.100.0000.00717.43
8.1.90.0040.00717.36
8.1.80.0080.00017.37
8.1.70.0000.00817.45
8.1.60.0060.00317.51
8.1.50.0040.00417.55
8.1.40.0020.00517.43
8.1.30.0000.00817.65
8.1.20.0000.00817.68
8.1.10.0040.00417.59
8.1.00.0040.00417.44
8.0.300.0000.00819.21
8.0.290.0000.00717.28
8.0.280.0080.00018.45
8.0.270.0050.00217.30
8.0.260.0070.00016.80
8.0.250.0030.00316.93
8.0.240.0060.00316.96
8.0.230.0000.00716.92
8.0.220.0030.00316.90
8.0.210.0000.00716.93
8.0.200.0060.00016.88
8.0.190.0000.00816.96
8.0.180.0040.00416.93
8.0.170.0000.00716.94
8.0.160.0000.00716.84
8.0.150.0040.00416.73
8.0.140.0000.00716.80
8.0.130.0000.00613.28
8.0.120.0000.00816.82
8.0.110.0040.00416.76
8.0.100.0040.00416.65
8.0.90.0000.00716.84
8.0.80.0040.01216.85
8.0.70.0050.00216.88
8.0.60.0020.00516.93
8.0.50.0070.00016.74
8.0.30.0110.01516.97
8.0.20.0080.01017.40
8.0.10.0040.00417.06
8.0.00.0160.00516.78
7.4.330.0030.00315.00
7.4.320.0030.00316.38
7.4.300.0030.00316.45
7.4.290.0060.00316.54
7.4.280.0070.00016.43
7.4.270.0000.00716.54
7.4.260.0070.00016.46
7.4.250.0000.00716.51
7.4.240.0050.00216.63
7.4.230.0030.00316.71
7.4.220.0100.00716.75
7.4.210.0090.00816.60
7.4.200.0000.00716.36
7.4.190.0020.00516.61
7.4.160.0130.00816.50
7.4.150.0120.00617.40
7.4.140.0110.01017.86
7.4.130.0120.00516.42
7.4.120.0080.01116.39
7.4.110.0060.01216.43
7.4.100.0110.00816.62
7.4.90.0070.01716.55
7.4.80.0040.01319.39
7.4.70.0000.01916.35
7.4.60.0160.00316.63
7.4.50.0040.00416.45
7.4.40.0110.00722.77
7.4.30.0110.00516.61
7.4.00.0080.00914.80
7.3.330.0030.00213.14
7.3.320.0030.00313.12
7.3.310.0070.00016.26
7.3.300.0060.00016.24
7.3.290.0090.00916.30
7.3.280.0070.01016.29
7.3.270.0030.01617.40
7.3.260.0150.00316.32
7.3.250.0080.00816.38
7.3.240.0100.01316.31
7.3.230.0120.00916.39
7.3.210.0070.01016.27
7.3.200.0060.01719.39
7.3.190.0170.00316.24
7.3.180.0110.01116.38
7.3.170.0090.01216.36
7.3.160.0140.00916.45
7.3.120.0080.01014.75
7.3.110.0050.01014.70
7.3.100.0050.00714.73
7.3.90.0070.00714.69
7.3.80.0070.00714.74
7.3.70.0090.00514.79
7.3.60.0070.00614.76
7.3.50.0080.00514.59
7.3.40.0030.01114.64
7.3.30.0070.00314.80
7.3.20.0090.00516.52
7.3.10.0040.00716.45
7.3.00.0070.01016.68
7.2.330.0130.00616.34
7.2.320.0110.01116.61
7.2.310.0140.00716.49
7.2.300.0060.01516.46
7.2.290.0100.00616.41
7.2.250.0090.00914.80
7.2.240.0100.00515.02
7.2.230.0090.00415.08
7.2.220.0070.00714.99
7.2.210.0070.00515.18
7.2.200.0060.00815.15
7.2.190.0090.00615.01
7.2.180.0080.01014.95
7.2.170.0070.00315.06
7.2.160.0060.00914.89
7.2.150.0070.00716.82
7.2.140.0070.00316.91
7.2.130.0110.00716.90
7.2.120.0130.00616.97
7.2.110.0090.00616.96
7.2.100.0090.00617.04
7.2.90.0040.01116.91
7.2.80.0120.00016.84
7.2.70.0040.01116.99
7.2.60.0070.00716.99
7.2.50.0130.00316.98
7.2.40.0070.00316.82
7.2.30.0110.00416.93
7.2.20.0000.01816.87
7.2.10.0000.01216.60
7.2.00.0060.01017.87
7.1.330.0020.01015.63
7.1.320.0050.00515.57
7.1.310.0070.00515.85
7.1.300.0080.00815.71
7.1.290.0030.01415.77
7.1.280.0020.01315.84
7.1.270.0050.00615.53
7.1.260.0060.00915.84
7.1.250.0000.01415.45
7.1.100.0130.00618.32
7.1.70.0080.00816.87
7.1.60.0060.01619.82
7.1.50.0060.00916.94
7.1.00.0030.04322.37
7.0.200.0030.00616.82
7.0.140.0030.07021.95
7.0.60.0100.08019.93
7.0.50.0000.04317.97
7.0.40.0030.05720.24
7.0.30.0230.05020.07
7.0.20.0170.04320.10
7.0.10.0070.05320.08
7.0.00.0030.04320.16
5.6.210.0100.08320.49
5.6.200.0000.08718.19
5.6.190.0000.08720.67
5.6.180.0070.08720.48
5.6.170.0230.03320.48
5.6.160.0070.04020.46
5.6.150.0170.07018.15
5.6.140.0070.05718.23
5.6.130.0070.05018.28
5.6.120.0130.07321.06
5.6.110.0130.08020.97
5.6.100.0170.07021.05
5.6.90.0100.08021.13
5.6.80.0100.07020.41
5.6.70.3530.03020.44
5.5.350.0170.05720.34
5.5.340.0000.04018.13
5.5.330.0100.06020.27
5.5.320.0230.05720.25
5.5.310.0270.08020.37
5.5.300.0130.03017.97
5.5.290.0070.08718.05
5.5.280.0030.08720.70
5.5.270.0200.06320.78
5.5.260.0030.04020.90
5.5.250.0070.08320.48
5.5.240.0330.07020.05
5.4.450.0270.06019.52
5.4.440.0370.04719.50
5.4.430.0230.05319.46
5.4.420.0270.05719.27
5.4.410.0300.04719.29
5.4.400.0230.05718.95
5.4.390.0230.05719.11
5.4.380.0230.08019.06
5.4.370.0430.05319.00
5.4.360.0230.07018.87
5.4.350.0230.03719.16
5.4.340.0500.05719.22
5.4.320.0330.07019.00
5.4.310.0300.06319.18
5.4.300.0230.04319.24
5.4.290.0430.03719.14
5.4.280.0330.07019.08
5.4.270.0330.03319.19
5.4.260.0400.03019.13
5.4.250.0270.05018.96
5.4.240.0230.07019.07
5.4.230.0300.04318.84
5.4.220.0300.07019.14
5.4.210.0300.06719.23
5.4.200.0230.07718.86
5.4.190.0270.06319.16
5.4.180.0230.04318.86
5.4.170.0370.06318.80
5.4.160.0300.07019.13
5.4.150.0400.07019.24
5.4.140.0270.07316.50
5.4.130.0300.03016.35
5.4.120.0230.07016.35
5.4.110.0330.03716.37
5.4.100.0330.07016.37
5.4.90.0330.04016.36
5.4.80.0370.04716.57
5.4.70.0370.06016.18
5.4.60.0300.05016.53
5.4.50.0300.06316.38
5.4.40.0230.06316.16
5.4.30.0270.07316.16
5.4.20.0270.04016.48
5.4.10.0300.04016.53
5.4.00.0300.05015.95
5.3.290.0300.04014.83
5.3.280.0270.07314.50
5.3.270.0330.06714.71
5.3.260.0300.05014.70
5.3.250.0270.07314.61
5.3.240.0230.04014.66
5.3.230.0200.04014.52
5.3.220.0200.05714.50
5.3.210.0300.06714.66
5.3.200.0330.07314.50
5.3.190.0330.04014.66
5.3.180.0370.04014.65
5.3.170.0230.04014.48
5.3.160.0400.05714.57
5.3.150.0370.06014.73
5.3.140.0330.07014.54
5.3.130.0330.07314.71
5.3.120.0330.04314.69
5.3.110.0300.04714.65
5.3.100.0300.05013.96
5.3.90.0270.04313.94
5.3.80.0400.06013.94
5.3.70.0270.04714.14
5.3.60.0330.06714.02
5.3.50.0200.04714.00
5.3.40.0300.05313.96
5.3.30.0230.05013.93
5.3.20.0270.04313.77
5.3.10.0370.04313.89
5.3.00.0330.06313.65
5.2.170.0270.06012.95
5.2.160.0270.05712.95
5.2.150.0270.03712.95
5.2.140.0200.06712.95
5.2.130.0200.05712.95
5.2.120.0230.05312.95
5.2.110.0230.05312.95
5.2.100.0200.04012.95
5.2.90.0230.05712.95
5.2.80.0330.05312.95
5.2.70.0330.05312.95
5.2.60.0300.04712.95
5.2.50.0270.06012.95
5.2.40.0230.04712.95
5.2.30.0170.05712.95
5.2.20.0200.06012.95
5.2.10.0200.04312.95
5.2.00.0330.04712.95
5.1.60.0230.05012.95
5.1.50.0200.04012.95
5.1.40.0170.04012.95
5.1.30.0300.03312.95
5.1.20.0200.05312.95
5.1.10.0230.05312.95
5.1.00.0200.05012.95
5.0.50.0100.04712.95
5.0.40.0130.04012.95
5.0.30.0170.05012.95
5.0.20.0130.03012.95
5.0.10.0100.03712.95
5.0.00.0100.05012.95
4.4.90.0100.03312.95
4.4.80.0070.02312.95
4.4.70.0070.03712.95
4.4.60.0100.03012.95
4.4.50.0230.02312.95
4.4.40.0070.05712.95
4.4.30.0130.02712.95
4.4.20.0070.02712.95
4.4.10.0230.01712.95
4.4.00.0070.03712.95
4.3.110.0070.03012.95
4.3.100.0100.03312.95
4.3.90.0130.02312.95
4.3.80.0100.05012.95
4.3.70.0070.03312.95
4.3.60.0100.03312.95
4.3.50.0100.03012.95
4.3.40.0070.04712.95
4.3.30.0100.03312.95
4.3.20.0030.03012.95
4.3.10.0070.02312.95
4.3.00.0100.02712.95

preferences:
33.07 ms | 400 KiB | 5 Q