3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$a = array("a" => 5); //$a = $c; //echo !isset($a['d']['e']['f']); $b = array('test', "deb"); $c = array("sdf", "dsf"); var_dump($b + $c); //class A { // protected $b = 5; //} //$a = new A(); //var_dump(json_decode(json_encode($a)));

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.0070.01418.28
8.3.50.0140.00521.09
8.3.40.0110.00318.61
8.3.30.0100.00320.22
8.3.20.0040.00420.22
8.3.10.0080.00022.02
8.3.00.0000.00822.46
8.2.180.0070.01416.63
8.2.170.0150.00622.96
8.2.160.0180.00020.39
8.2.150.0000.00724.18
8.2.140.0040.01524.66
8.2.130.0070.00726.16
8.2.120.0050.00319.29
8.2.110.0060.00322.20
8.2.100.0070.00319.23
8.2.90.0000.00819.05
8.2.80.0080.00019.30
8.2.70.0080.00417.38
8.2.60.0080.00017.92
8.2.50.0000.00818.07
8.2.40.0030.00718.09
8.2.30.0000.00817.91
8.2.20.0080.00017.49
8.2.10.0020.00517.68
8.2.00.0070.00017.66
8.1.280.0070.01025.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00023.96
8.1.230.0110.00019.14
8.1.220.0000.00717.74
8.1.210.0030.00618.77
8.1.200.0030.00617.38
8.1.190.0040.00417.40
8.1.180.0000.00820.25
8.1.170.0040.00418.45
8.1.160.0070.00022.16
8.1.150.0000.00718.57
8.1.140.0000.00717.32
8.1.130.0000.00717.76
8.1.120.0000.00717.38
8.1.110.0050.00217.38
8.1.100.0030.00317.40
8.1.90.0000.00717.37
8.1.80.0070.00017.35
8.1.70.0040.00417.29
8.1.60.0030.00617.39
8.1.50.0050.00317.46
8.1.40.0000.00717.43
8.1.30.0000.00717.50
8.1.20.0030.00617.56
8.1.10.0080.00017.34
8.1.00.0060.00317.34
8.0.300.0000.00718.77
8.0.290.0070.00017.04
8.0.280.0030.00318.37
8.0.270.0040.00417.09
8.0.260.0030.00316.67
8.0.250.0030.00316.96
8.0.240.0000.00816.82
8.0.230.0070.00016.94
8.0.220.0070.00016.75
8.0.210.0030.00316.91
8.0.200.0000.00616.94
8.0.190.0040.00416.94
8.0.180.0090.00016.87
8.0.170.0000.00716.88
8.0.160.0050.00216.86
8.0.150.0040.00416.77
8.0.140.0070.00016.84
8.0.130.0060.00013.35
8.0.120.0000.00816.89
8.0.110.0030.00316.78
8.0.100.0020.00516.71
8.0.90.0040.00416.75
8.0.80.0060.01016.77
8.0.70.0040.00416.70
8.0.60.0050.00216.75
8.0.50.0040.00416.84
8.0.30.0100.00816.91
8.0.20.0100.01017.40
8.0.10.0000.00716.98
8.0.00.0140.00716.67
7.4.330.0030.00315.00
7.4.320.0070.00016.55
7.4.300.0000.00716.46
7.4.290.0000.00716.60
7.4.280.0030.00316.58
7.4.270.0000.00716.37
7.4.260.0030.00616.52
7.4.250.0070.00016.53
7.4.240.0000.00716.44
7.4.230.0030.00316.42
7.4.220.0160.01016.48
7.4.210.0100.00516.40
7.4.200.0030.00316.35
7.4.190.0030.00316.32
7.4.160.0130.00316.30
7.4.150.0060.01217.40
7.4.140.0130.00717.86
7.4.130.0110.00616.36
7.4.120.0100.00716.49
7.4.110.0100.00716.37
7.4.100.0070.01116.43
7.4.90.0140.00316.26
7.4.80.0150.00619.39
7.4.70.0080.00816.51
7.4.60.0040.01416.42
7.4.50.0050.00016.21
7.4.40.0070.01022.77
7.4.30.0060.01016.40
7.4.00.0070.01114.89
7.3.330.0030.00312.93
7.3.320.0050.00012.87
7.3.310.0040.00416.02
7.3.300.0000.00716.11
7.3.290.0040.00916.18
7.3.280.0050.01416.20
7.3.270.0150.00917.40
7.3.260.0030.02016.23
7.3.250.0110.00716.23
7.3.240.0130.00416.33
7.3.230.0100.00716.49
7.3.210.0060.01216.39
7.3.200.0060.01319.39
7.3.190.0090.00816.39
7.3.180.0070.01016.36
7.3.170.0030.01316.44
7.3.160.0070.01016.32
7.3.120.0060.00614.68
7.2.330.0030.01516.59
7.2.320.0070.01116.53
7.2.310.0100.00716.50
7.2.300.0030.01416.66
7.2.290.0100.00716.38
7.2.00.0030.01319.21
7.1.200.0000.01115.57
7.1.100.0110.00817.93
7.1.70.0030.01017.22
7.1.60.0140.00419.29
7.1.50.0100.01317.02
7.1.00.0000.07022.33
7.0.200.0090.00614.85
7.0.140.0030.07322.07
7.0.60.0130.05320.06
7.0.50.0100.07717.80
7.0.40.0030.04720.21
7.0.30.0300.07720.21
7.0.20.0330.07720.09
7.0.10.0030.08320.13
7.0.00.0070.09020.19
5.6.280.0000.07321.09
5.6.210.0070.08020.75
5.6.200.0070.08018.09
5.6.190.0000.04720.39
5.6.180.0270.07320.27
5.6.170.0270.05720.38
5.6.160.0030.07720.54
5.6.150.0070.04018.21
5.6.140.0100.07318.20
5.6.130.0030.05718.17
5.6.120.0100.08721.09
5.6.110.0070.07020.88
5.6.100.0170.06321.13
5.6.90.0200.08021.15
5.6.80.0070.03320.36
5.6.70.4930.04020.52
5.5.350.0130.07720.45
5.5.340.0100.08018.04
5.5.330.0070.04020.14
5.5.320.0170.03720.41
5.5.310.0230.06020.28
5.5.300.0030.08317.89
5.5.290.0070.04017.88
5.5.280.0000.04720.97
5.5.270.0100.03720.87
5.5.260.0070.08720.84
5.5.250.0100.07720.68
5.5.240.0070.03320.14
5.4.450.0230.06719.41
5.4.440.0300.07319.56
5.4.430.0270.05019.13
5.4.420.0400.06019.56
5.4.410.0330.06719.28
5.4.400.0500.04318.83
5.4.390.0330.03719.13
5.4.380.0370.06319.25
5.4.370.0370.05719.25
5.4.360.0330.06019.10
5.4.350.0400.06019.20
5.4.340.0330.05018.92
5.4.320.0300.04319.09
5.4.310.0200.04719.09
5.4.300.0130.07719.07
5.4.290.0200.07318.80
5.4.280.0200.07719.24
5.4.270.0300.06318.90
5.4.260.0230.05719.15
5.4.250.0130.04719.08
5.4.240.0200.04718.91
5.4.230.0270.07019.21
5.4.220.0300.06319.08
5.4.210.0300.05719.08
5.4.200.0200.07718.91
5.4.190.0200.08018.91
5.4.180.0270.04019.15
5.4.170.0270.06718.91
5.4.160.0300.07019.07
5.4.150.0300.03719.11
5.4.140.0270.04716.45
5.4.130.0300.05316.38
5.4.120.0200.05316.44
5.4.110.0270.06016.21
5.4.100.0170.05316.06
5.4.90.0230.05716.21
5.4.80.0200.05316.46
5.4.70.0300.05316.18
5.4.60.0230.04716.39
5.4.50.0270.03316.36
5.4.40.0330.06716.47
5.4.30.0370.05016.36
5.4.20.0130.06016.42
5.4.10.0300.06016.46
5.4.00.0270.05015.83
5.3.290.0230.07014.75
5.3.280.0370.06014.52
5.3.270.0170.05014.43
5.3.260.0200.05714.46
5.3.250.0230.07314.54
5.3.240.0230.05014.55
5.3.230.0330.04314.43
5.3.220.0270.06014.50
5.3.210.0300.07014.43
5.3.200.0130.05014.47
5.3.190.0200.07314.42
5.3.180.0200.07714.48
5.3.170.0230.05314.46
5.3.160.0170.06314.41
5.3.150.0300.06314.51
5.3.140.0270.07014.50
5.3.130.0230.04714.48
5.3.120.0230.07714.59
5.3.110.0270.06014.38
5.3.100.0170.07713.96
5.3.90.0230.07014.05
5.3.80.0270.06013.98
5.3.70.0270.05314.06
5.3.60.0200.06314.09
5.3.50.0230.07313.90
5.3.40.0230.06313.79
5.3.30.0230.06713.71
5.3.20.0300.05013.49
5.3.10.0200.04713.59
5.3.00.0270.06313.46
5.2.170.0300.05012.30
5.2.160.0230.05312.30
5.2.150.0170.04312.30
5.2.140.0200.05312.30
5.2.130.0200.04012.30
5.2.120.0270.03312.30
5.2.110.0200.05712.30
5.2.100.0100.05312.30
5.2.90.0170.06012.30
5.2.80.0170.06012.30
5.2.70.0200.03312.30
5.2.60.0100.04312.30
5.2.50.0130.06312.30
5.2.40.0270.03012.30
5.2.30.0170.05712.30
5.2.20.0130.04312.30
5.2.10.0170.05312.30
5.2.00.0170.05712.30
5.1.60.0130.05012.30
5.1.50.0130.03012.30
5.1.40.0070.03712.30
5.1.30.0270.04712.30
5.1.20.0200.04712.30
5.1.10.0200.05012.30
5.1.00.0070.05012.30
5.0.50.0070.02312.30
5.0.40.0100.04312.30
5.0.30.0130.06312.30
5.0.20.0070.04312.30
5.0.10.0130.04012.30
5.0.00.0130.06012.30
4.4.90.0030.02012.30
4.4.80.0100.03312.30
4.4.70.0070.03712.30
4.4.60.0100.03312.30
4.4.50.0070.02712.30
4.4.40.0030.04012.30
4.4.30.0100.02012.30
4.4.20.0130.03012.30
4.4.10.0070.01712.30
4.4.00.0030.02712.30
4.3.110.0030.02012.30
4.3.100.0030.03712.30
4.3.90.0100.02312.30
4.3.80.0130.04712.30
4.3.70.0070.03012.30
4.3.60.0100.02712.30
4.3.50.0030.03712.30
4.3.40.0170.03312.30
4.3.30.0100.03012.30
4.3.20.0070.03712.30
4.3.10.0030.03712.30
4.3.00.0100.03012.30

preferences:
46.8 ms | 401 KiB | 5 Q