3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = new class implements \ArrayAccess { public function offsetExists($offset) { echo "offsetExists\n"; } public function offsetGet($offset) { echo "offsetGet\n"; } public function offsetSet($offset, $value) { } public function offsetUnset($offset) { } }; echo "isset:\n"; isset($data['foo']) ? NULL : NULL; echo "null coalescing operator:\n"; $data['foo'] ?? NULL;

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.0110.00418.43
8.3.50.0150.00822.85
8.3.40.0060.00918.67
8.3.30.0110.00418.67
8.3.20.0040.00420.21
8.3.10.0050.00318.61
8.3.00.0000.00820.82
8.2.180.0100.00716.47
8.2.170.0170.00322.96
8.2.160.0070.01320.43
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00419.36
8.2.120.0050.00326.16
8.2.110.0030.00722.38
8.2.100.0040.00917.78
8.2.90.0040.00417.75
8.2.80.0040.00418.73
8.2.70.0040.00417.50
8.2.60.0030.00517.63
8.2.50.0000.00817.75
8.2.40.0050.00318.16
8.2.30.0030.00521.34
8.2.20.0000.01017.70
8.2.10.0040.00418.10
8.2.00.0000.00718.05
8.1.280.0150.00325.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0060.00323.83
8.1.230.0000.01119.04
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0000.00817.36
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0080.00017.62
8.1.160.0040.00420.90
8.1.150.0040.00418.80
8.1.140.0040.00419.57
8.1.130.0000.00717.76
8.1.120.0030.00617.45
8.1.110.0040.00417.34
8.1.100.0070.00017.54
8.1.90.0090.00017.44
8.1.80.0020.00517.32
8.1.70.0040.00417.49
8.1.60.0040.00417.51
8.1.50.0000.00817.46
8.1.40.0070.00017.49
8.1.30.0000.00917.56
8.1.20.0050.00317.69
8.1.10.0040.00417.58
8.1.00.0040.00417.57
8.0.300.0040.00418.77
8.0.290.0000.00716.63
8.0.280.0030.00318.46
8.0.270.0070.00017.20
8.0.260.0060.00017.14
8.0.250.0060.00016.84
8.0.240.0040.00416.98
8.0.230.0070.00016.86
8.0.220.0000.00716.88
8.0.210.0000.00716.89
8.0.200.0000.00716.92
8.0.190.0050.00216.99
8.0.180.0040.00416.83
8.0.170.0050.00316.94
8.0.160.0000.00716.88
8.0.150.0070.00416.80
8.0.140.0020.00516.84
8.0.130.0000.00513.25
8.0.120.0000.00816.80
8.0.110.0070.00016.88
8.0.100.0030.00316.72
8.0.90.0000.00816.92
8.0.80.0040.01216.88
8.0.70.0000.00816.71
8.0.60.0000.00716.75
8.0.50.0030.00516.79
8.0.30.0070.01016.91
8.0.20.0090.01217.40
8.0.10.0070.00016.82
8.0.00.0120.01016.84
7.4.330.0000.00515.08
7.4.320.0040.00416.56
7.4.300.0060.00016.55
7.4.290.0080.00016.47
7.4.280.0050.00216.49
7.4.270.0070.00016.50
7.4.260.0000.00816.51
7.4.250.0070.00016.57
7.4.240.0070.00016.54
7.4.230.0070.00016.60
7.4.220.0060.01216.69
7.4.210.0030.01016.66
7.4.200.0040.00416.59
7.4.160.0060.00916.57
7.4.150.0100.00717.40
7.4.140.0220.01117.86
7.4.130.0070.01116.49
7.4.120.0110.00716.58
7.4.110.0080.00816.44
7.4.100.0060.01216.45
7.4.90.0060.01116.57
7.4.80.0170.00019.39
7.4.70.0030.01316.62
7.4.60.0060.00916.57
7.4.50.0060.00616.55
7.4.40.0080.00816.61
7.4.30.0100.00716.68
7.4.00.0030.01015.04
7.3.330.0020.00213.32
7.3.320.0000.00613.27
7.3.310.0030.00316.30
7.3.300.0070.00016.22
7.3.290.0070.00916.32
7.3.280.0090.01016.28
7.3.270.0120.01217.40
7.3.260.0070.01116.34
7.3.250.0100.00716.38
7.3.240.0140.00516.45
7.3.230.0110.00616.55
7.3.210.0060.01316.50
7.3.200.0070.01016.24
7.3.190.0120.00616.29
7.3.180.0120.00416.33
7.3.170.0160.00616.19
7.3.160.0060.00916.19
7.2.330.0090.01316.39
7.2.320.0130.00316.37
7.2.310.0060.01616.55
7.2.300.0060.01016.74
7.2.290.0090.00616.73
7.2.60.0040.00716.77
7.2.00.0030.01019.27
7.1.200.0000.01215.62
7.1.70.0040.00417.11
7.1.60.0120.00317.18
7.1.50.0000.01517.11
7.1.40.0000.01417.11
7.1.30.0000.01517.11
7.1.20.0060.01517.11
7.1.10.0070.00717.11
7.1.00.0000.01117.11
7.0.200.0040.00417.11
7.0.190.0000.00917.11
7.0.180.0040.00417.11
7.0.170.0030.00917.11
7.0.160.0050.00517.11
7.0.150.0080.01317.11
7.0.140.0040.01317.11
7.0.130.0140.00317.11
7.0.120.0040.01517.11
7.0.110.0080.00817.11
7.0.100.0110.00617.11
7.0.90.0080.00417.11
7.0.80.0060.00917.11
7.0.70.0050.00217.11
7.0.60.0000.00917.11
7.0.50.0080.00417.11
7.0.40.0080.00517.11
7.0.30.0040.00917.11
7.0.20.0040.00417.11
7.0.10.0000.00717.11
7.0.00.0000.01017.11
5.6.300.0040.06820.90
5.6.290.0000.05320.67
5.6.280.0130.06320.97
5.6.270.0100.04120.99
5.6.260.0070.06320.86
5.6.250.0160.03420.90
5.6.240.0090.04121.05
5.6.230.0070.04220.86
5.6.220.0000.04620.93
5.6.210.0070.07820.79
5.6.200.0000.06420.82
5.6.190.0040.05120.86
5.6.180.0100.03720.96
5.6.170.0190.06420.95
5.6.160.0060.04720.75
5.6.150.0060.06820.98
5.6.140.0120.03920.75
5.6.130.0030.05120.81
5.6.120.0130.05320.80
5.6.110.0030.04120.77
5.6.100.0030.04320.81
5.6.90.0000.04420.80
5.6.80.0030.08120.43
5.6.70.0000.08020.30
5.6.60.0000.05020.37
5.6.50.0030.04620.19
5.6.40.0030.07820.38
5.6.30.0060.03520.28
5.6.20.0030.04320.30
5.6.10.0100.03220.34
5.6.00.0130.06820.30
5.5.380.0090.05117.48
5.5.370.0090.05217.68
5.5.360.0000.06217.40
5.5.350.0000.05617.40
5.5.340.0000.08217.84
5.5.330.0070.04317.84
5.5.320.0030.06918.14
5.5.310.0030.04218.09
5.5.300.0030.04318.03
5.5.290.0040.04318.13
5.5.280.0030.04217.84
5.5.270.0070.04317.76
5.5.260.0100.03618.12
5.5.250.0000.04317.67
5.5.240.0130.07017.40
5.5.230.0000.07917.41
5.5.220.0000.04217.44
5.5.210.0000.04517.12
5.5.200.0030.05717.41
5.5.190.0030.04017.11
5.5.180.0030.03817.44
5.5.160.0030.06417.44
5.5.150.0030.06317.37
5.5.140.0100.07417.36
5.5.130.0000.08417.38
5.5.120.0000.05517.44
5.5.110.0030.03717.43
5.5.100.0110.03617.31
5.5.90.0030.03717.29
5.5.80.0000.03917.34
5.5.70.0130.06917.42
5.5.60.0030.04117.38
5.5.50.0030.04317.29
5.5.40.0100.05617.37
5.5.30.0060.07117.37
5.5.20.0030.04617.27
5.5.10.0070.07817.42
5.5.00.0070.03717.32
5.4.450.0030.04319.33
5.4.440.0030.04019.53
5.4.430.0030.04219.30
5.4.420.0040.04619.52
5.4.410.0000.08219.30
5.4.400.0070.07919.00
5.4.390.0070.03719.23
5.4.380.0000.04319.06
5.4.370.0030.04019.21
5.4.360.0070.04718.98
5.4.350.0100.03419.04
5.4.340.0130.02919.08
5.4.320.0000.04519.07
5.4.310.0070.07819.06
5.4.300.0160.06119.14
5.4.290.0140.05419.12
5.4.280.0100.03919.19
5.4.270.0290.03919.25
5.4.260.0030.03819.10
5.4.250.0040.05019.06
5.4.240.0070.04118.88
5.4.230.0030.06619.06
5.4.220.0000.05019.09
5.4.210.0000.04019.07
5.4.200.0030.08218.89
5.4.190.0030.04019.06
5.4.180.0070.07819.16
5.4.170.0100.05219.21
5.4.160.0030.03819.13
5.4.150.0240.02919.18
5.4.140.0030.03617.11
5.4.130.0000.05217.11
5.4.120.0000.04017.11
5.4.110.0130.03117.11
5.4.100.0040.03517.11
5.4.90.0040.04017.11
5.4.80.0030.03817.11
5.4.70.0040.04217.11
5.4.60.0030.03817.11
5.4.50.0040.03617.11
5.4.40.0030.03817.11
5.4.30.0000.04117.11
5.4.20.0000.03817.11
5.4.10.0000.04317.11
5.4.00.0000.03917.11
5.3.290.0070.05317.11
5.3.280.0040.03917.11
5.3.270.0070.05517.11
5.3.260.0030.04117.11
5.3.250.0070.03417.11
5.3.240.0030.04517.11
5.3.230.0040.05317.11
5.3.220.0060.03517.11
5.3.210.0060.03717.11
5.3.200.0130.03417.11
5.3.190.0030.03717.11
5.3.180.0130.03117.11
5.3.170.0000.05417.11
5.3.160.0070.03317.11
5.3.150.0060.04117.11
5.3.140.0070.03917.11
5.3.130.0030.03817.11
5.3.120.0030.06517.11
5.3.110.0130.04617.11
5.3.100.0030.04117.11
5.3.90.0030.03817.11
5.3.80.0130.04917.11
5.3.70.0000.04517.11
5.3.60.0000.04117.11
5.3.50.0000.04217.11
5.3.40.0000.04417.11
5.3.30.0000.05617.11
5.3.20.0060.03517.11
5.3.10.0040.03617.11
5.3.00.0000.04417.11
5.2.170.0030.02917.11
5.2.160.0030.04217.11
5.2.150.0030.03117.11
5.2.140.0060.02917.11
5.2.130.0060.03617.11
5.2.120.0000.03217.11
5.2.110.0030.02917.11
5.2.100.0060.02917.11
5.2.90.0030.02717.11
5.2.80.0000.07517.11
5.2.70.0030.04117.11
5.2.60.0000.03117.11
5.2.50.0000.03117.11
5.2.40.0070.05917.11
5.2.30.0000.03417.11
5.2.20.0000.05117.11
5.2.10.0000.03117.11
5.2.00.0070.02617.11
5.1.60.0030.02317.11
5.1.50.0000.03317.11
5.1.40.0030.02517.11
5.1.30.0000.02917.11
5.1.20.0130.02417.11
5.1.10.0040.02517.11
5.1.00.0000.02717.11
5.0.50.0030.02017.11
5.0.40.0040.01817.11
5.0.30.0000.03217.11
5.0.20.0000.02517.11
5.0.10.0060.03117.11
5.0.00.0030.04317.11
4.4.90.0030.01417.11
4.4.80.0030.01817.11
4.4.70.0000.01717.11
4.4.60.0000.01717.11
4.4.50.0040.01417.11
4.4.40.0000.03417.11
4.4.30.0030.01717.11
4.4.20.0000.01717.11
4.4.10.0000.01817.11
4.4.00.0030.02317.11
4.3.110.0000.01717.11
4.3.100.0000.02017.11
4.3.90.0030.02517.11
4.3.80.0030.03917.11
4.3.70.0000.01717.11
4.3.60.0000.01817.11
4.3.50.0060.01217.11
4.3.40.0110.01717.11
4.3.30.0030.01817.11
4.3.20.0040.01417.11
4.3.10.0040.01417.11
4.3.00.0000.01817.11

preferences:
63.75 ms | 401 KiB | 5 Q