3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $foo = array( 'foo' => 'oof' ); if (!isset($foo['sub']['arrays']['are']['pretty']['cool'])) { $foo['sub']['arrays']['are']['pretty']['cool'] = 0; } print_r($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.0070.00718.83
8.3.30.0110.00420.17
8.3.20.0090.00020.66
8.3.10.0040.00421.22
8.3.00.0040.00423.65
8.2.170.0180.00018.85
8.2.160.0120.00822.96
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0080.00026.16
8.2.120.0070.00021.12
8.2.110.0070.00320.52
8.2.100.0070.00318.04
8.2.90.0000.00818.34
8.2.80.0040.00419.16
8.2.70.0040.00418.05
8.2.60.0040.00417.50
8.2.50.0040.00417.55
8.2.40.0040.00418.15
8.2.30.0080.00019.36
8.2.20.0040.00417.70
8.2.10.0040.00417.68
8.2.00.0080.00017.63
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0000.00928.09
8.1.240.0100.00722.01
8.1.230.0050.00521.00
8.1.220.0000.00817.76
8.1.210.0040.00419.01
8.1.200.0080.00017.35
8.1.190.0100.00017.23
8.1.180.0000.01018.10
8.1.170.0000.00817.62
8.1.160.0040.00418.82
8.1.150.0040.00418.64
8.1.140.0030.00517.46
8.1.130.0000.00817.82
8.1.120.0050.00217.34
8.1.110.0070.00017.36
8.1.100.0000.00717.44
8.1.90.0040.00417.39
8.1.80.0030.00317.52
8.1.70.0030.00317.45
8.1.60.0040.00417.48
8.1.50.0040.00417.52
8.1.40.0000.00717.42
8.1.30.0030.00517.54
8.1.20.0040.00417.66
8.1.10.0030.00617.48
8.1.00.0000.00717.43
8.0.300.0070.00020.00
8.0.290.0060.00316.75
8.0.280.0030.00318.45
8.0.270.0030.00516.81
8.0.260.0060.00316.74
8.0.250.0000.00716.84
8.0.240.0040.00416.88
8.0.230.0070.00016.82
8.0.220.0070.00016.88
8.0.210.0000.00816.90
8.0.200.0030.00316.94
8.0.190.0000.00716.83
8.0.180.0040.00416.94
8.0.170.0040.00416.89
8.0.160.0070.00016.87
8.0.150.0000.00716.80
8.0.140.0000.00816.91
8.0.130.0030.00313.28
8.0.120.0000.00716.79
8.0.110.0070.00016.75
8.0.100.0080.00016.79
8.0.90.0030.00516.78
8.0.80.0090.01216.92
8.0.70.0030.00316.92
8.0.60.0000.00816.76
8.0.50.0000.00716.95
8.0.30.0100.00816.89
8.0.20.0120.01017.40
8.0.10.0050.00217.00
8.0.00.0100.00816.80
7.4.330.0060.00014.87
7.4.320.0000.00616.62
7.4.300.0060.00016.49
7.4.290.0060.00016.51
7.4.280.0050.00216.39
7.4.270.0050.00316.53
7.4.260.0000.00613.20
7.4.250.0050.00316.49
7.4.240.0030.00316.43
7.4.230.0070.00016.58
7.4.220.0160.00316.37
7.4.210.0080.00816.53
7.4.200.0000.00716.45
7.4.190.0070.00016.69
7.4.150.0210.00317.40
7.4.140.0110.00617.86
7.4.130.0110.00616.43
7.4.120.0070.01116.48
7.4.110.0120.00616.52
7.4.100.0140.00316.45
7.4.90.0070.01016.55
7.4.80.0070.01019.39
7.4.70.0110.01116.65
7.4.60.0060.01016.55
7.4.50.0060.00316.55
7.4.40.0040.01522.77
7.4.30.0130.00316.39
7.4.00.0000.01714.76
7.3.330.0050.00013.11
7.3.320.0000.00512.99
7.3.310.0070.00016.33
7.3.300.0030.00316.16
7.3.290.0040.01116.32
7.3.280.0070.00916.31
7.3.270.0130.00317.40
7.3.260.0120.01018.24
7.3.250.0070.01016.40
7.3.240.0120.01316.55
7.3.230.0080.00816.60
7.3.210.0130.00516.21
7.3.200.0130.00619.39
7.3.190.0100.00716.65
7.3.180.0130.00316.57
7.3.170.0100.00516.27
7.3.160.0130.00616.35
7.3.120.0040.01214.54
7.3.10.0240.00216.42
7.3.00.0130.01016.21
7.2.330.0040.01516.70
7.2.320.0150.00616.80
7.2.310.0060.01216.33
7.2.300.0100.00716.71
7.2.290.0030.01316.50
7.2.130.0210.01316.08
7.2.120.0000.01816.09
7.2.110.0340.00716.23
7.2.100.0320.01216.32
7.2.90.0460.00616.32
7.2.80.0180.01116.31
7.2.70.0260.00716.40
7.2.60.0270.00316.62
7.2.50.0550.00716.84
7.2.40.0340.00616.79
7.2.30.0300.00016.38
7.2.20.0730.01016.87
7.2.10.0290.00616.08
7.2.00.0160.00818.18
7.1.250.0190.00815.71
7.1.200.0040.01115.48
7.1.100.0060.00318.22
7.1.70.0030.00517.22
7.1.60.0060.01019.17
7.1.50.0090.01616.95
7.1.00.0070.05722.37
7.0.200.0100.00016.60
7.0.140.0030.07022.00
7.0.90.0430.05719.93
7.0.80.0700.07719.84
7.0.70.0630.08019.88
7.0.60.0500.06719.93
7.0.50.0670.07320.17
7.0.40.0130.05020.18
7.0.30.0030.06020.15
7.0.20.0030.08720.10
7.0.10.0170.07320.04
7.0.00.0070.07020.18
5.6.280.0100.06321.07
5.6.230.0100.08320.69
5.6.220.0100.06020.48
5.6.210.0130.08020.71
5.6.200.0130.07721.05
5.6.190.0070.08020.93
5.6.180.0130.04321.07
5.6.170.0030.09321.03
5.6.160.0030.05721.08
5.6.150.0000.05021.13
5.6.140.0100.08020.93
5.6.130.0030.05721.16
5.6.120.0170.03720.94
5.6.110.0070.04320.92
5.6.100.0030.08021.02
5.6.90.0070.08020.91
5.6.80.0000.04320.33
5.6.70.0230.06720.39
5.6.60.0070.07020.47
5.6.50.0070.06720.31
5.6.40.0130.07320.37
5.6.30.0200.05020.25
5.6.20.0130.03720.26
5.6.10.0170.07020.42
5.6.00.0100.07720.37
5.5.370.0100.06020.49
5.5.360.0100.08020.35
5.5.350.0070.07020.44
5.5.340.0100.07320.64
5.5.330.0130.07320.88
5.5.320.0170.07720.89
5.5.310.0130.06020.63
5.5.300.0070.04320.88
5.5.290.0070.04720.85
5.5.280.0030.04720.88
5.5.270.0070.08320.85
5.5.260.0030.04320.82
5.5.250.0100.04320.45
5.5.240.0130.07020.30
5.5.230.0070.07320.29
5.5.220.0030.08720.27
5.5.210.0030.07720.18
5.5.200.0100.07719.98
5.5.190.0030.06020.13
5.5.180.0130.06019.99
5.5.160.0200.06720.16
5.5.150.0200.07020.13
5.5.140.0070.07020.17
5.5.130.0100.04320.20
5.5.120.0130.07320.24
5.5.110.0100.08320.20
5.5.100.0130.07720.07
5.5.90.0170.06020.12
5.5.80.0070.08020.09
5.5.70.0100.08020.11
5.5.60.0070.07720.05
5.5.50.0070.07320.03
5.5.40.0070.07720.05
5.5.30.0070.08020.04
5.5.20.0030.05720.04
5.5.10.0030.08320.04
5.5.00.0130.03719.96
5.4.450.0030.04719.42
5.4.440.0100.07319.45
5.4.430.0100.07319.46
5.4.420.0030.04319.41
5.4.410.0100.07319.31
5.4.400.0100.05019.10
5.4.390.0100.07319.06
5.4.380.0070.08018.79
5.4.370.0070.04719.04
5.4.360.0070.04719.03
5.4.350.0130.07019.14
5.4.340.0130.05319.11
5.4.320.0130.05019.07
5.4.310.0000.07719.12
5.4.300.0070.07019.12
5.4.290.0030.07318.90
5.4.280.0100.07319.03
5.4.270.0130.06718.95
5.4.260.0030.05318.98
5.4.250.0130.06719.03
5.4.240.0030.08319.13
5.4.230.0100.04719.02
5.4.220.0070.05018.95
5.4.210.0030.06719.11
5.4.200.0270.07019.14
5.4.190.0100.05319.22
5.4.180.0100.04019.00
5.4.170.0070.04319.08
5.4.160.0000.08319.04
5.4.150.0030.08019.20
5.4.140.0130.07016.36
5.4.130.0130.06316.33
5.4.120.0130.06716.36
5.4.110.0030.05316.32
5.4.100.0070.05016.27
5.4.90.0030.06716.45
5.4.80.0030.07316.29
5.4.70.0070.05716.24
5.4.60.0130.06016.21
5.4.50.0030.07716.39
5.4.40.0200.06316.26
5.4.30.0070.06316.27
5.4.20.0030.07016.21
5.4.10.0030.08016.28
5.4.00.0030.07015.79
5.3.290.0170.04014.60
5.3.280.0170.07014.57
5.3.270.0070.07314.46
5.3.260.0100.06714.56
5.3.250.0000.08314.59
5.3.240.0030.07714.59
5.3.230.0100.07714.46
5.3.220.0130.06314.55
5.3.210.0070.05014.40
5.3.200.0070.07714.55
5.3.190.0100.07714.55
5.3.180.0030.04714.38
5.3.170.0170.06714.50
5.3.160.0100.05714.50
5.3.150.0100.03314.51
5.3.140.0070.06014.41
5.3.130.0000.05314.52
5.3.120.0030.06014.50
5.3.110.0070.06714.49
5.3.100.0000.04713.87
5.3.90.0030.07014.02
5.3.80.0000.04014.02
5.3.70.0030.06713.98
5.3.60.0070.07013.95
5.3.50.0070.05713.93
5.3.40.0070.07313.85
5.3.30.0070.07013.90
5.3.20.0070.06013.77
5.3.10.0070.07313.77
5.3.00.0030.07713.77
5.2.170.0000.03713.77
5.2.160.0070.06013.77
5.2.150.0000.05713.77
5.2.140.0070.06313.77
5.2.130.0130.05313.77
5.2.120.0070.06313.77
5.2.110.0100.05313.77
5.2.100.0100.06013.77
5.2.90.0130.05313.77
5.2.80.0030.05013.77
5.2.70.0030.04013.77
5.2.60.0100.05313.77
5.2.50.0070.06313.77
5.2.40.0070.05313.77
5.2.30.0030.05713.77
5.2.20.0070.06013.77
5.2.10.0070.04013.77
5.2.00.0100.05313.77
5.1.60.0000.05713.77
5.1.50.0070.05713.77
5.1.40.0030.05713.77
5.1.30.0070.04313.77
5.1.20.0030.02713.77
5.1.10.0100.04013.77
5.1.00.0070.05313.77
5.0.50.0000.03013.77
5.0.40.0000.04313.77
5.0.30.0030.06313.77
5.0.20.0030.04313.77
5.0.10.0030.03713.77
5.0.00.0030.06013.77
4.4.90.0030.03313.77
4.4.80.0030.03013.77
4.4.70.0000.03713.77
4.4.60.0070.02013.77
4.4.50.0030.03713.77
4.4.40.0100.04713.77
4.4.30.0030.03313.77
4.4.20.0000.03713.77
4.4.10.0000.03713.77
4.4.00.0070.05313.77
4.3.110.0000.03013.77
4.3.100.0030.03013.77
4.3.90.0000.03313.77
4.3.80.0000.05313.77
4.3.70.0000.02313.77
4.3.60.0030.03313.77
4.3.50.0070.02013.77
4.3.40.0030.05013.77
4.3.30.0030.03313.77
4.3.20.0000.03313.77
4.3.10.0000.02713.77
4.3.00.0030.03313.77

preferences:
46.83 ms | 400 KiB | 5 Q