3v4l.org

run code in 300+ PHP versions simultaneously
<?php class arr implements ArrayAccess { public function offsetGet($index) { $this[$index]; return null; } public function offsetExists($index) {} public function offsetIsset($index) {} public function offsetUnset($index){} public function offsetSet($index, $value){} } $arr = new arr(); var_dump($arr['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.0240.01335.04
8.3.30.0240.01035.21
8.3.20.0100.01036.59
8.3.10.0140.00339.40
8.3.00.0070.01135.46
8.2.170.0230.00728.32
8.2.160.0170.00729.84
8.2.150.0130.00028.60
8.2.140.0070.00728.71
8.2.130.0100.00730.25
8.2.120.0100.00329.89
8.2.110.0110.00429.94
8.2.100.0190.00327.34
8.2.90.0060.00628.72
8.2.80.0100.00327.13
8.2.70.0100.00327.13
8.2.60.0060.00627.66
8.2.50.0140.00727.00
8.2.40.0040.00827.76
8.2.30.0070.00727.84
8.2.20.0080.00427.24
8.2.10.0090.00327.77
8.2.00.0100.00327.34
8.1.270.0100.00332.01
8.1.260.0100.00328.25
8.1.250.0060.00631.94
8.1.240.0130.00331.19
8.1.230.0160.00328.33
8.1.220.0080.00426.79
8.1.210.0120.00326.48
8.1.200.0070.00726.47
8.1.190.0070.00726.63
8.1.180.0060.01026.60
8.1.170.0100.00327.73
8.1.160.0070.00431.28
8.1.150.0060.00627.99
8.1.140.0100.00326.79
8.1.130.0030.00727.17
8.1.120.0030.00726.72
8.1.110.0100.00326.86
8.1.100.0040.00726.70
8.1.90.0040.00726.72
8.1.80.0080.00426.80
8.1.70.0090.00326.73
8.1.60.0110.00426.91
8.1.50.0080.00426.84
8.1.40.0090.00326.93
8.1.30.0070.00426.98
8.1.20.0040.00726.91
8.1.10.0080.00326.87
8.1.00.0110.00026.88
8.0.300.0090.00626.29
8.0.290.0040.00826.16
8.0.280.0090.00327.42
8.0.270.0060.00626.27
8.0.260.0040.00726.36
8.0.250.0000.01126.09
8.0.240.0030.00926.02
8.0.230.0070.00326.09
8.0.220.0070.00425.92
8.0.210.0000.01126.01
8.0.200.0030.00726.03
8.0.190.0030.00725.96
8.0.180.0110.00025.87
8.0.170.0030.00825.97
8.0.160.0080.00325.96
8.0.150.0080.00425.87
8.0.140.0070.00725.84
8.0.130.0060.00322.49
8.0.120.0110.00026.04
8.0.110.0110.00025.87
8.0.100.0030.00925.84
8.0.90.0070.00325.90
8.0.80.0100.01425.93
8.0.70.0090.00326.07
8.0.60.0040.00825.93
8.0.50.0040.00725.98
8.0.30.0130.01826.21
8.0.20.0160.01326.14
8.0.10.0140.00725.93
8.0.00.0180.01125.97
7.4.330.0090.00022.94
7.4.320.0030.00825.79
7.4.300.0120.00025.61
7.4.290.0090.00625.69
7.4.280.0040.00925.68
7.4.270.0030.00725.68
7.4.260.0070.00325.70
7.4.250.0060.00525.75
7.4.240.0050.00625.76
7.4.230.0070.00425.81
7.4.220.0200.01025.70
7.4.210.0170.00925.74
7.4.200.0100.00325.74
7.4.190.0050.00525.88
7.4.160.0190.01125.70
7.4.150.0260.01525.77
7.4.140.0170.01325.72
7.4.130.0200.00925.73
7.4.120.0200.00825.76
7.4.110.0170.02025.77
7.4.100.0280.01025.87
7.4.90.0170.01425.73
7.4.80.0290.00025.71
7.4.70.0150.01125.79
7.4.60.0160.01225.63
7.4.50.0060.00725.68
7.4.40.0170.01425.69
7.4.30.0150.01225.82
7.4.00.0070.01423.97
7.3.330.0090.00022.44
7.3.320.0090.00022.68
7.3.310.0070.00425.47
7.3.300.0080.00425.46
7.3.290.0170.00725.48
7.3.280.0180.01225.58
7.3.270.0150.01225.71
7.3.260.0300.02325.54
7.3.250.0210.00825.70
7.3.240.0200.00925.82
7.3.230.0210.01825.67
7.3.210.0210.00625.36
7.3.200.0330.01825.76
7.3.190.0250.01225.74
7.3.180.0210.00625.79
7.3.170.0300.00725.57
7.3.160.0150.01325.82
7.3.120.0110.01024.21
7.3.10.0120.01023.86
7.3.00.0150.00724.32
7.2.330.0170.01425.86
7.2.320.0280.00425.68
7.2.310.0260.01125.83
7.2.300.0110.01525.50
7.2.290.0220.01625.77
7.2.130.0090.00924.70
7.2.120.0180.00324.77
7.2.110.0110.01124.64
7.2.100.0140.01224.30
7.2.90.0110.00724.62
7.2.80.0140.01124.42
7.2.70.0090.00924.71
7.2.60.0110.01324.66
7.2.50.0230.00524.47
7.2.40.0240.00324.47
7.2.30.0100.01724.48
7.2.20.0330.00024.55
7.2.10.0130.01524.62
7.2.00.0140.00525.88
7.1.250.0120.00623.31
7.1.200.0120.00923.58
7.1.100.0090.00626.00
7.1.70.0100.00025.12
7.1.60.0150.01525.11
7.1.50.0230.01325.00
7.1.00.0070.07330.39
7.0.200.0000.01026.56
7.0.140.0030.07732.15
7.0.110.1500.06730.02
7.0.100.1570.09029.92
7.0.90.1400.07329.89
7.0.80.1370.08029.90
7.0.70.0130.08029.89
7.0.60.0130.08029.62
7.0.50.0200.07329.88
7.0.40.0130.06727.75
7.0.30.0100.07727.79
7.0.20.0070.08027.70
7.0.10.0030.05327.78
7.0.00.0100.08327.73
5.6.280.0170.06731.15
5.6.260.0070.08030.80
5.6.250.0100.08330.72
5.6.240.0170.08030.61
5.6.230.0170.08030.76
5.6.220.0170.07330.73
5.6.210.0100.05030.67
5.6.200.0070.06330.91
5.6.190.0070.08730.74
5.6.180.0170.07730.65
5.6.170.0130.04330.61
5.6.160.0100.08330.61
5.6.150.0070.09030.68
5.6.140.0070.08730.62
5.6.130.0000.09730.66
5.6.120.0130.05330.61
5.6.110.0030.05730.66
5.6.100.0070.06730.89
5.6.90.0130.07330.50
5.6.80.0070.07730.01
5.6.70.0170.06330.00
5.6.60.0030.08329.98
5.6.50.0100.07030.06
5.6.40.0200.07729.97
5.6.30.0130.08330.05
5.6.20.0170.08030.09
5.6.10.0100.07029.98
5.6.00.0200.07730.12
5.5.380.0070.05030.49
5.5.370.0130.07730.43
5.5.360.0100.08330.34
5.5.350.0100.08030.46
5.5.340.0130.08730.90
5.5.330.0130.07730.95
5.5.320.0130.07330.91
5.5.310.0130.07730.84
5.5.300.0070.05330.82
5.5.290.0030.09031.02
5.5.280.0100.08030.79
5.5.270.0130.08330.87
5.5.260.0030.08730.86
5.5.250.0100.08330.60
5.5.240.0200.07030.20
5.5.230.0170.08030.13
5.5.220.0030.05330.26
5.5.210.0230.07330.27
5.5.200.0100.08330.25
5.5.190.0170.07730.38
5.5.180.0130.08030.11
5.5.160.0230.06730.14
5.5.150.0170.07330.37
5.5.140.0170.05330.27
5.5.130.0200.07030.17
5.5.120.0100.05330.39
5.5.110.0230.06330.19
5.5.100.0130.07730.06
5.5.90.0070.08030.25
5.5.80.0030.08730.03
5.5.70.0170.07730.19
5.5.60.0170.04029.98
5.5.50.0030.07330.04
5.5.40.0170.06730.04
5.5.30.0170.07730.13
5.5.20.0030.08729.97
5.5.10.0170.08030.02
5.5.00.0130.05030.14
5.4.450.0100.07329.69
5.4.440.0070.05329.71
5.4.430.0170.05329.73
5.4.420.0100.07329.52
5.4.410.0070.08729.67
5.4.400.0130.07029.18
5.4.390.0200.06729.21
5.4.380.0130.07329.31
5.4.370.0100.07729.39
5.4.360.0200.07029.25
5.4.350.0130.07329.22
5.4.340.0130.07729.48
5.4.320.0100.06329.22
5.4.310.0130.08029.27
5.4.300.0130.07029.21
5.4.290.0170.08029.38
5.4.280.0070.08029.16
5.4.270.0100.06729.38
5.4.260.0100.06729.56
5.4.250.0130.07729.44
5.4.240.0030.08029.15
5.4.230.0170.07329.25
5.4.220.0200.06329.26
5.4.210.0100.06329.26
5.4.200.0170.08029.56
5.4.190.0170.04329.24
5.4.180.0170.06729.19
5.4.170.0130.07329.18
5.4.160.0100.08729.27
5.4.150.0030.08329.14
5.4.140.0130.07026.69
5.4.130.0100.04026.48
5.4.120.0070.07726.60
5.4.110.0130.07326.77
5.4.100.0200.06726.74
5.4.90.0130.07026.69
5.4.80.0030.05326.66
5.4.70.0230.06326.56
5.4.60.0070.04026.58
5.4.50.0100.08026.88
5.4.40.0070.07026.71
5.4.30.0070.08026.76
5.4.20.0070.07026.68
5.4.10.0170.07326.76
5.4.00.0070.08025.97
5.3.290.0230.06724.97
5.3.280.0170.06024.99
5.3.270.0100.07724.77
5.3.260.0170.07724.84
5.3.250.0100.06324.83
5.3.240.0070.08324.74
5.3.230.0170.07724.76
5.3.220.0070.08024.61
5.3.210.0070.04724.70
5.3.200.0130.07324.79
5.3.190.0100.07024.70
5.3.180.0100.08024.86
5.3.170.0100.08024.70
5.3.160.0070.08024.70
5.3.150.0070.07724.71
5.3.140.0100.05724.69
5.3.130.0100.07724.72
5.3.120.0100.07024.71
5.3.110.0100.07324.68
5.3.100.0130.07324.20
5.3.90.0030.05324.11
5.3.80.0100.07024.07
5.3.70.0100.07324.09
5.3.60.0130.04323.91
5.3.50.0130.07324.16
5.3.40.0070.07023.99
5.3.30.0130.03724.04
5.3.20.0100.07723.90
5.3.10.0100.07323.73
5.3.00.0070.07723.86
5.2.170.0070.04021.68
5.2.160.0030.06021.69
5.2.150.0070.06321.61
5.2.140.0170.06321.57
5.2.130.0100.06321.53
5.2.120.0170.05721.55
5.2.110.0030.07321.49
5.2.100.0030.04321.66
5.2.90.0130.03321.68
5.2.80.0100.04721.76
5.2.70.0030.06321.60
5.2.60.0100.03321.50
5.2.50.0000.07021.49
5.2.40.0070.04021.51
5.2.30.0070.06721.46
5.2.20.0100.06321.60
5.2.10.0130.05721.52
5.2.00.0030.06721.38
5.1.60.0030.06321.04
5.1.50.0100.05721.05
5.1.40.0070.04321.03
5.1.30.0000.06721.48
5.1.20.0100.03321.28
5.1.10.0130.06021.09
5.1.00.0100.05321.00
5.0.50.0100.04719.23
5.0.40.0030.04311.91
5.0.30.0000.05311.91
5.0.20.0030.04711.91
5.0.10.0000.02711.91
5.0.00.0000.06011.91
4.4.90.0030.02711.91
4.4.80.0030.03711.91
4.4.70.0030.01711.91
4.4.60.0070.02011.91
4.4.50.0030.03311.91
4.4.40.0000.05011.91
4.4.30.0030.03311.91
4.4.20.0030.03311.91
4.4.10.0070.03311.91
4.4.00.0030.04311.91
4.3.110.0100.03011.91
4.3.100.0030.03311.91
4.3.90.0030.02011.91
4.3.80.0000.05311.91
4.3.70.0070.03011.91
4.3.60.0130.02711.91
4.3.50.0000.03711.91
4.3.40.0070.05011.91
4.3.30.0030.02011.91
4.3.20.0030.03711.91
4.3.10.0000.03711.91
4.3.00.0000.03711.91

preferences:
43.58 ms | 400 KiB | 5 Q