3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL & ~E_NOTICE); $foo = array("bar" => "baz", "null" => "void"); print_r($foo[bar]); //this works, as it will assume $foo["bar"] print_r($foo[null]); //null is a defined constant, so it will look for a value with an empty key which is not defined

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.140.0040.00417.61
8.4.130.0050.00517.96
8.4.120.0110.00920.57
8.4.110.0080.00822.59
8.4.100.0110.00617.98
8.4.90.0110.01118.73
8.4.80.0100.01017.91
8.4.70.0030.00617.95
8.4.60.0130.00620.18
8.4.50.0110.01018.56
8.4.40.0100.01017.72
8.4.30.0130.00617.85
8.4.20.0120.00617.86
8.4.10.0100.01017.70
8.3.270.0110.00916.83
8.3.260.0110.00816.86
8.3.250.0130.00619.05
8.3.240.0120.00616.77
8.3.230.0070.01016.80
8.3.220.0050.00317.16
8.3.210.0110.00918.35
8.3.200.0090.00416.65
8.3.190.0070.00117.32
8.3.180.0050.00316.85
8.3.170.0070.01018.84
8.3.160.0140.00716.56
8.3.150.0110.00716.80
8.3.140.0090.00620.63
8.3.130.0080.00018.64
8.3.120.0120.00318.85
8.3.110.0080.00020.94
8.3.100.0030.00618.44
8.3.90.0050.00326.77
8.3.80.0060.00317.97
8.3.70.0110.00718.43
8.3.60.0130.00718.32
8.3.50.0090.00921.93
8.3.40.0180.00018.84
8.3.30.0150.00418.95
8.3.20.0050.00220.14
8.3.10.0000.00721.87
8.3.00.0040.00419.79
8.2.290.0110.00720.51
8.2.280.0100.01318.59
8.2.270.0090.00016.91
8.2.260.0040.00416.72
8.2.250.0000.00716.82
8.2.240.0040.00417.05
8.2.230.0090.00022.58
8.2.220.0070.00024.06
8.2.210.0000.00826.77
8.2.200.0060.00316.63
8.2.190.0220.00018.30
8.2.180.0140.00716.75
8.2.170.0090.00622.96
8.2.160.0110.00719.29
8.2.150.0060.00624.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00021.07
8.2.110.0070.00322.30
8.2.100.0110.00017.84
8.2.90.0050.00317.84
8.2.80.0030.00618.22
8.2.70.0080.00017.50
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0000.00717.97
8.2.30.0030.00518.05
8.2.20.0050.00217.74
8.2.10.0020.00518.11
8.2.00.0080.00017.85
8.1.330.0070.00722.04
8.1.320.0060.01216.08
8.1.310.0150.00316.27
8.1.300.0060.00320.38
8.1.290.0060.00330.84
8.1.280.0110.00425.92
8.1.270.0080.00022.10
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00022.48
8.1.230.0090.00320.85
8.1.220.0050.00317.79
8.1.210.0040.00418.77
8.1.200.0070.00317.11
8.1.190.0040.00417.52
8.1.180.0050.00318.10
8.1.170.0000.01018.64
8.1.160.0030.00521.92
8.1.150.0040.00418.79
8.1.140.0070.00017.45
8.1.130.0000.00717.69
8.1.120.0050.00317.47
8.1.110.0000.00717.43
8.1.100.0040.00417.23
8.1.90.0040.00417.45
8.1.80.0000.00717.31
8.1.70.0000.00717.47
8.1.60.0060.00317.45
8.1.50.0040.00417.43
8.1.40.0000.00817.48
8.1.30.0000.00817.60
8.1.20.0030.00517.69
8.1.10.0050.00317.50
8.1.00.0060.00317.51
8.0.300.0000.00719.98
8.0.290.0040.00416.75
8.0.280.0000.00718.35
8.0.270.0030.00317.24
8.0.260.0030.00317.14
8.0.250.0070.00016.90
8.0.240.0000.00717.02
8.0.230.0030.00517.00
8.0.220.0000.00716.84
8.0.210.0040.00416.98
8.0.200.0030.00317.00
8.0.190.0040.00417.04
8.0.180.0040.00416.98
8.0.170.0040.00416.90
8.0.160.0000.00716.87
8.0.150.0050.00316.93
8.0.140.0040.00416.79
8.0.130.0050.00013.36
8.0.120.0040.00416.88
8.0.110.0070.00016.77
8.0.100.0040.00316.88
8.0.90.0050.00216.84
8.0.80.0140.00317.01
8.0.70.0030.00416.84
8.0.60.0000.00716.93
8.0.50.0040.00416.96
8.0.30.0120.00717.15
8.0.20.0090.01217.41
8.0.10.0000.00816.97
8.0.00.0110.00716.62
7.4.330.0000.00515.11
7.4.320.0000.00716.50
7.4.300.0000.00716.50
7.4.290.0030.00316.59
7.4.280.0000.00916.48
7.4.270.0070.00016.57
7.4.260.0030.00316.57
7.4.250.0000.00716.44
7.4.240.0020.00516.42
7.4.230.0000.00716.49
7.4.220.0060.01116.54
7.4.210.0060.01516.61
7.4.200.0040.00416.68
7.4.160.0040.01216.36
7.4.150.0110.00817.40
7.4.140.0110.00717.86
7.4.130.0080.00816.57
7.4.120.0110.00716.49
7.4.110.0090.01816.40
7.4.100.0100.00716.21
7.4.90.0070.01316.32
7.4.80.0060.01219.39
7.4.70.0100.01316.56
7.4.60.0060.01216.61
7.4.50.0000.00816.55
7.4.40.0040.01216.59
7.4.30.0090.00916.66
7.4.00.0100.00715.17
7.3.330.0000.00513.16
7.3.320.0050.00013.08
7.3.310.0000.00716.25
7.3.300.0000.00716.22
7.3.290.0100.00516.30
7.3.280.0060.01116.24
7.3.270.0100.00717.40
7.3.260.0140.00716.22
7.3.250.0130.00516.39
7.3.240.0070.01716.14
7.3.230.0130.00316.39
7.3.210.0130.00316.33
7.3.200.0150.00619.39
7.3.190.0090.00816.71
7.3.180.0110.00716.45
7.3.170.0110.00816.57
7.3.160.0140.00716.45
7.3.10.0100.00316.43
7.3.00.0070.00716.43
7.2.330.0160.00716.66
7.2.320.0150.00316.26
7.2.310.0180.00616.30
7.2.300.0000.01616.55
7.2.290.0120.00916.66
7.2.130.0060.00716.57
7.2.120.0000.01217.00
7.2.110.0120.00316.86
7.2.100.0030.00716.85
7.2.90.0100.00716.78
7.2.80.0090.00017.01
7.2.70.0040.01216.95
7.2.60.0050.00616.92
7.2.50.0040.01116.96
7.2.40.0030.00516.68
7.2.30.0120.00016.99
7.2.20.0110.00416.97
7.2.10.0000.01416.83
7.2.00.0030.00918.00
7.1.250.0000.00715.78
7.1.200.0070.00715.61
7.1.100.0040.00717.88
7.1.70.0000.00717.07
7.1.60.0130.01019.29
7.1.50.0240.01234.71
7.1.00.0070.07322.30
7.0.200.0070.00016.91
7.0.140.0070.06021.93
7.0.100.0300.05019.89
7.0.90.0070.07019.96
7.0.80.0130.05019.91
7.0.70.0130.07719.90
7.0.60.0200.08020.07
7.0.50.0030.08020.35
7.0.40.0000.05320.02
7.0.30.0030.04020.08
7.0.20.0030.08020.02
7.0.10.0100.06320.10
7.0.00.0130.08720.08
5.6.280.0030.07320.99
5.6.250.0170.07020.48
5.6.240.0030.06020.66
5.6.230.0000.08720.53
5.6.220.0070.08320.66
5.6.210.0130.07020.46
5.6.200.0100.07321.05
5.6.190.0100.03721.13
5.6.180.0100.06721.16
5.6.170.0100.06320.93
5.6.160.0070.04721.13
5.6.150.0200.06020.94
5.6.140.0100.06321.01
5.6.130.0030.07021.06
5.6.120.0100.07321.05
5.6.110.0130.06321.09
5.6.100.0030.04721.01
5.6.90.0030.04721.09
5.6.80.0030.08020.44
5.6.70.0070.05320.48
5.6.60.0200.06020.36
5.6.50.0100.06020.49
5.6.40.0070.05020.28
5.6.30.0000.04320.38
5.6.20.0100.03020.42
5.6.10.0100.08020.43
5.6.00.0070.08020.34
5.5.380.0030.05020.41
5.5.370.0130.07720.41
5.5.360.0070.07320.40
5.5.350.0070.08020.36
5.5.340.0070.04720.79
5.5.330.0070.06020.92
5.5.320.0070.08320.86
5.5.310.0130.07320.82
5.5.300.0000.04720.90
5.5.290.0170.07020.87
5.5.280.0100.07020.72
5.5.270.0130.05020.74
5.5.260.0030.07720.74
5.5.250.0030.04320.56
5.5.240.0070.05320.30
5.5.230.0070.04020.13
5.5.220.0100.04320.11
5.5.210.0130.06720.19
5.5.200.0030.05320.27
5.5.190.0070.03720.23
5.5.180.0070.04320.22
5.5.160.0030.03720.18
5.5.150.0030.04020.11
5.5.140.0070.06320.23
5.5.130.0070.03720.07
5.5.120.0100.03320.24
5.5.110.0000.06720.18
5.5.100.0000.06720.16
5.5.90.0070.08320.12
5.5.80.0030.05020.04
5.5.70.0100.07020.04
5.5.60.0070.04720.11
5.5.50.0000.04319.95
5.5.40.0030.08020.14
5.5.30.0200.07320.14
5.5.20.0000.08320.09
5.5.10.0070.08719.95
5.5.00.0000.06020.14
5.4.450.0070.08019.29
5.4.440.0130.03319.14
5.4.430.0030.04019.13
5.4.420.0130.03719.46
5.4.410.0100.07318.98
5.4.400.0030.04018.95
5.4.390.0030.06019.10
5.4.380.0030.08019.05
5.4.370.0030.07719.03
5.4.360.0100.05319.23
5.4.350.0070.03719.02
5.4.340.0070.04719.14
5.4.320.0030.07019.13
5.4.310.0030.04719.07
5.4.300.0070.05719.07
5.4.290.0200.04319.04
5.4.280.0100.07019.11
5.4.270.0070.07019.03
5.4.260.0100.07018.98
5.4.250.0200.06318.95
5.4.240.0070.07019.22
5.4.230.0000.08019.22
5.4.220.0100.03318.80
5.4.210.0100.05318.97
5.4.200.0070.05318.95
5.4.190.0070.08018.89
5.4.180.0070.07018.80
5.4.170.0100.06018.89
5.4.160.0070.06019.12
5.4.150.0070.07718.96
5.4.140.0100.05716.07
5.4.130.0070.04716.27
5.4.120.0070.05016.38
5.4.110.0070.06716.42
5.4.100.0000.06016.43
5.4.90.0100.07016.43
5.4.80.0070.07016.22
5.4.70.0070.03016.20
5.4.60.0100.06716.39
5.4.50.0030.03716.25
5.4.40.0000.04016.46
5.4.30.0070.03016.20
5.4.20.0070.04716.32
5.4.10.0070.05716.23
5.4.00.0070.05015.80
5.3.290.0070.07714.65
5.3.280.0170.07014.58
5.3.270.0030.04714.60
5.3.260.0030.07714.55
5.3.250.0070.04014.59
5.3.240.0030.05014.58
5.3.230.0130.03014.58
5.3.220.0130.03714.47
5.3.210.0130.03014.52
5.3.200.0070.06014.57
5.3.190.0000.04314.51
5.3.180.0130.06314.46
5.3.170.0070.03714.52
5.3.160.0070.03014.50
5.3.150.0030.05714.55
5.3.140.0030.03714.55
5.3.130.0000.04714.53
5.3.120.0030.07714.53
5.3.110.0030.05714.50
5.3.100.0100.06713.94
5.3.90.0070.04714.00
5.3.80.0000.04013.87
5.3.70.0030.07013.77
5.3.60.0030.04013.99
5.3.50.0070.03313.80
5.3.40.0070.05013.90
5.3.30.0030.04713.91
5.3.20.0070.04013.64
5.3.10.0000.05013.42
5.3.00.0070.04313.58
5.2.170.0100.02312.25
5.2.160.0100.05712.25
5.2.150.0070.04312.25
5.2.140.0030.04712.25
5.2.130.0000.03012.25
5.2.120.0000.03312.25
5.2.110.0000.02712.25
5.2.100.0000.06012.25
5.2.90.0030.06012.25
5.2.80.0100.05712.25
5.2.70.0070.04012.25
5.2.60.0130.04712.25
5.2.50.0000.07012.25
5.2.40.0100.04712.25
5.2.30.0100.02012.25
5.2.20.0030.05012.25
5.2.10.0070.04712.25
5.2.00.0070.06012.25
5.1.60.0030.04712.25
5.1.50.0030.05312.25
5.1.40.0000.02712.25
5.1.30.0000.05712.25
5.1.20.0030.04712.25
5.1.10.0070.02312.25
5.1.00.0000.03012.25
5.0.50.0070.04012.25
5.0.40.0030.02312.25
5.0.30.0000.03712.25
5.0.20.0030.02012.25
5.0.10.0100.04012.25
5.0.00.0000.06712.25
4.4.90.0000.01712.25
4.4.80.0070.01712.25
4.4.70.0000.02012.25
4.4.60.0000.01712.25
4.4.50.0000.01712.25
4.4.40.0030.04012.25
4.4.30.0000.02312.25
4.4.20.0000.02312.25
4.4.10.0000.03012.25
4.4.00.0070.03712.25
4.3.110.0030.01712.25
4.3.100.0070.03012.25
4.3.90.0030.01712.25
4.3.80.0070.05012.25
4.3.70.0000.03312.25
4.3.60.0000.01712.25
4.3.50.0000.02712.25
4.3.40.0030.04012.25
4.3.30.0070.01012.25
4.3.20.0000.02012.25
4.3.10.0000.03312.25
4.3.00.0030.01712.25

preferences:
31.87 ms | 403 KiB | 5 Q