3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C implements ArrayAccess { private $data = array( "foo"=>"bar" ); public function offsetExists ( $offset ) { return array_key_exists((string)$offset,$this->data); } public function offsetGet ( $offset ){ return $this->data[$offset]; } public function offsetSet ( $offset , $value ) { $this->data[$offset]=$value; } public function offsetUnset ( $offset ) { unset($this->data[$offset]); } } $o=new C(); if(array_key_exists('foo',$o)){ echo "ArrayAccess seems to work"; }else{ echo "ArrayAccess seems broken"; }

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.4.130.0120.00918.72
8.4.120.0110.00917.96
8.4.110.0140.00518.20
8.4.100.0140.00718.25
8.4.90.0120.00720.77
8.4.80.0130.00618.96
8.4.70.0160.00619.07
8.4.60.0050.00419.02
8.4.50.0050.00418.99
8.4.40.0120.00617.84
8.4.30.0120.00620.89
8.4.20.0160.00324.20
8.4.10.0030.00619.79
8.3.260.0080.01016.59
8.3.250.0080.00716.54
8.3.240.0120.00618.63
8.3.230.0040.00516.67
8.3.220.0050.00320.91
8.3.210.0030.00418.59
8.3.200.0060.00316.91
8.3.190.0100.01017.41
8.3.180.0110.00718.94
8.3.170.0110.00818.91
8.3.160.0150.00317.16
8.3.150.0110.01117.15
8.3.140.0040.00417.21
8.3.130.0050.00318.52
8.3.120.0030.00518.87
8.3.110.0070.00718.20
8.3.100.0040.00416.62
8.3.90.0040.00416.90
8.3.80.0060.00319.36
8.3.70.0030.01516.63
8.3.60.0120.00616.88
8.3.50.0070.01123.74
8.3.40.0030.01320.26
8.3.30.0000.01518.68
8.3.20.0090.00024.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.290.0090.00716.75
8.2.280.0130.00818.67
8.2.270.0070.01118.95
8.2.260.0090.00917.22
8.2.250.0080.00016.74
8.2.240.0110.00719.17
8.2.230.0160.00620.94
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0000.01016.75
8.2.190.0070.00716.63
8.2.180.0140.00425.92
8.2.170.0150.00019.13
8.2.160.0100.00322.96
8.2.150.0000.01125.66
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0080.00019.36
8.2.110.0030.00722.07
8.2.100.0080.00417.84
8.2.90.0090.00017.88
8.2.80.0060.00318.91
8.2.70.0040.00417.63
8.2.60.0040.00417.59
8.2.50.0040.00417.63
8.2.40.0040.00718.34
8.2.30.0050.00318.02
8.2.20.0000.00718.00
8.2.10.0030.00519.20
8.2.00.0040.00419.23
8.1.330.0130.00716.20
8.1.320.0110.00816.05
8.1.310.0070.00718.38
8.1.300.0060.01318.08
8.1.290.0030.00618.88
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0140.00726.35
8.1.250.0000.00728.09
8.1.240.0130.00317.48
8.1.230.0040.00720.85
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00817.48
8.1.190.0090.00017.35
8.1.180.0030.00618.10
8.1.170.0040.00418.95
8.1.160.0000.00718.86
8.1.150.0000.00718.89
8.1.140.0000.00818.96
8.1.130.0000.00720.06
8.1.120.0030.00517.42
8.1.110.0000.00817.46
8.1.100.0050.00217.38
8.1.90.0080.00017.45
8.1.80.0040.00417.39
8.1.70.0030.00317.40
8.1.60.0040.00417.60
8.1.50.0030.00617.55
8.1.40.0040.00417.58
8.1.30.0050.00217.57
8.1.20.0000.00817.68
8.1.10.0050.00317.49
8.1.00.0000.01017.53
8.0.300.0040.00418.77
8.0.290.0030.00716.75
8.0.280.0040.00418.46
8.0.270.0040.00418.00
8.0.260.0050.00218.52
8.0.250.0000.00717.00
8.0.240.0000.00817.07
8.0.230.0030.00317.00
8.0.220.0030.00316.85
8.0.210.0040.00416.85
8.0.200.0030.00317.01
8.0.190.0040.00416.99
8.0.180.0040.00417.03
8.0.170.0030.00617.02
8.0.160.0030.00516.97
8.0.150.0000.00816.95
8.0.140.0070.00016.94
8.0.130.0000.00613.35
8.0.120.0030.00516.95
8.0.110.0040.00416.92
8.0.100.0000.00816.95
8.0.90.0000.00716.80
8.0.80.0060.00916.95
8.0.70.0000.00916.89
8.0.60.0000.00716.91
8.0.50.0030.00617.03
8.0.30.0090.00917.29
8.0.20.0140.00817.08
8.0.10.0070.00017.03
8.0.00.0160.00616.63
7.4.330.0050.00015.55
7.4.320.0060.00016.53
7.4.300.0070.00016.63
7.4.290.0000.00716.63
7.4.280.0000.00816.60
7.4.270.0030.00316.52
7.4.260.0000.00513.29
7.4.250.0000.00716.50
7.4.240.0080.00016.60
7.4.230.0030.00516.70
7.4.220.0040.00416.52
7.4.210.0080.01016.61
7.4.200.0030.00516.63
7.4.130.0110.00716.48
7.4.120.0050.01216.57
7.4.110.0030.01316.47
7.4.100.0140.00316.58
7.4.90.0100.00816.50
7.4.80.0080.01016.53
7.4.70.0060.01316.56
7.4.60.0140.00616.52
7.4.50.0110.00616.52
7.4.40.0070.01316.47
7.4.30.0110.00716.39
7.4.20.0070.01216.32
7.4.10.0080.00916.65
7.4.00.0090.00916.53
7.3.330.0030.00316.21
7.3.320.0080.00013.15
7.3.310.0070.00016.01
7.3.300.0030.00316.05
7.3.290.0090.00616.18
7.3.280.0030.01716.14
7.3.260.0100.01116.35
7.3.230.0090.00916.54
7.3.220.0130.00516.26
7.3.210.0060.01116.23
7.3.200.0120.00516.33
7.3.190.0090.01016.42
7.3.180.0120.00716.18
7.3.170.0060.01016.46
7.3.160.0110.00716.34
7.3.150.0070.01316.26
7.3.140.0080.01016.28
7.3.130.0090.01016.45
7.3.120.0080.00816.21
7.3.110.0100.00916.39
7.3.100.0090.00816.30
7.3.90.0110.00616.36
7.3.80.0060.01016.23
7.3.70.0060.01216.25
7.3.60.0140.00716.27
7.3.50.0080.01316.24
7.3.40.0050.01216.38
7.3.30.0100.00816.20
7.3.20.0100.00816.35
7.3.10.0080.00916.32
7.3.00.0120.00816.35
7.2.330.0080.01016.63
7.2.320.0090.00816.59
7.2.310.0120.01116.45
7.2.300.0090.01316.62
7.2.290.0080.01316.56
7.2.280.0060.01416.61
7.2.270.0050.01216.38
7.2.260.0120.00816.46
7.2.250.0120.00716.67
7.2.240.0050.01516.56
7.2.230.0100.00816.62
7.2.220.0050.01216.48
7.2.210.0100.00716.57
7.2.200.0100.01316.53
7.2.190.0150.00616.51
7.2.180.0110.00716.35
7.2.170.0130.00716.47
7.2.160.0080.01016.41
7.2.150.0080.01016.56
7.2.140.0080.01116.56
7.2.130.0090.01116.55
7.2.120.0110.00916.53
7.2.110.0110.01216.55
7.2.100.0100.01316.49
7.2.90.0190.01116.52
7.2.80.0100.00916.65
7.2.70.0140.00816.63
7.2.60.0260.00816.45
7.2.50.0120.00816.57
7.2.40.0130.00816.58
7.2.30.0160.01116.57
7.2.20.0150.00616.49
7.2.10.0110.00816.42
7.2.00.0090.00816.49

preferences:
30.81 ms | 403 KiB | 5 Q