3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 'id' => 1, 'name' => 'Jacopo', 'male' => true, 'birthday' => new DateTime('1988-07-26'), 'hobbies' => array( 'Programming', 'TV Shows', 'Skiing' ) ); print_r($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.00716.38
8.3.50.0080.01318.35
8.3.40.0040.01118.84
8.3.30.0120.00318.83
8.3.20.0040.01118.73
8.3.10.0040.00420.61
8.3.00.0050.00319.50
8.2.180.0140.00725.92
8.2.170.0100.00718.95
8.2.160.0100.00622.96
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00826.16
8.2.120.0040.00418.99
8.2.110.0070.00321.05
8.2.100.0040.00817.97
8.2.90.0030.00619.33
8.2.80.0000.00719.32
8.2.70.0030.00617.75
8.2.60.0030.00517.93
8.2.50.0080.00018.07
8.2.40.0080.00018.09
8.2.30.0040.00418.10
8.2.20.0030.00617.94
8.2.10.0040.00417.94
8.2.00.0040.00417.78
8.1.280.0100.01025.92
8.1.270.0080.00024.66
8.1.260.0050.00526.35
8.1.250.0070.00028.09
8.1.240.0050.00522.50
8.1.230.0070.00421.03
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0040.00417.40
8.1.180.0040.00418.10
8.1.170.0070.00018.80
8.1.160.0000.00718.84
8.1.150.0040.00418.77
8.1.140.0060.00317.47
8.1.130.0000.00717.78
8.1.120.0020.00517.50
8.1.110.0040.00417.44
8.1.100.0050.00217.55
8.1.90.0040.00417.57
8.1.80.0030.00317.59
8.1.70.0000.00817.50
8.1.60.0060.00317.66
8.1.50.0050.00317.57
8.1.40.0030.00617.59
8.1.30.0030.00617.66
8.1.20.0000.00717.73
8.1.10.0000.00717.62
8.1.00.0050.00317.55
8.0.300.0040.00419.91
8.0.290.0040.00416.75
8.0.280.0030.00318.46
8.0.270.0000.00717.17
8.0.260.0000.00716.91
8.0.250.0050.00217.02
8.0.240.0070.00417.14
8.0.230.0030.00317.06
8.0.220.0040.00416.97
8.0.210.0030.00517.08
8.0.200.0000.00617.00
8.0.190.0080.00017.05
8.0.180.0080.00017.07
8.0.170.0050.00316.88
8.0.160.0000.00817.05
8.0.150.0040.00416.88
8.0.140.0030.00616.90
8.0.130.0070.00013.38
8.0.120.0000.00816.98
8.0.110.0040.00416.91
8.0.100.0030.00517.08
8.0.90.0040.00417.00
8.0.80.0110.00416.95
8.0.70.0040.00417.05
8.0.60.0040.00417.05
8.0.50.0040.00416.84
8.0.30.0060.01317.21
8.0.20.0090.01017.13
8.0.10.0000.00717.02
8.0.00.0100.01016.85
7.4.330.0000.00513.06
7.4.320.0030.00316.58
7.4.300.0080.00016.46
7.4.290.0050.00316.65
7.4.280.0020.00516.47
7.4.270.0000.00716.58
7.4.260.0030.00313.23
7.4.250.0070.00016.64
7.4.240.0030.00316.64
7.4.230.0000.00716.68
7.4.220.0030.01316.69
7.4.210.0040.01016.63
7.4.200.0040.00416.56
7.4.190.0030.00316.61
7.4.160.0120.00616.45
7.4.150.0090.00916.37
7.4.140.0090.00916.49
7.4.130.0070.01216.41
7.4.120.0110.00716.60
7.4.110.0090.00916.46
7.4.100.0130.00316.55
7.4.90.0170.00716.73
7.4.80.0060.01216.52
7.4.70.0090.00616.56
7.4.60.0120.00716.56
7.4.50.0000.00716.79
7.4.40.0040.01116.49
7.4.30.0140.00316.50
7.4.00.0090.00614.91
7.3.330.0030.00313.05
7.3.320.0000.00613.20
7.3.310.0000.00716.40
7.3.300.0060.00016.32
7.3.290.0120.00916.41
7.3.280.0040.01116.32
7.3.270.0130.00416.50
7.3.260.0110.00616.46
7.3.250.0140.00916.47
7.3.240.0070.01016.64
7.3.230.0180.00416.39
7.3.210.0100.00716.43
7.3.200.0140.00619.39
7.3.190.0070.01316.41
7.3.180.0090.01216.43
7.3.170.0110.00416.43
7.3.160.0060.00916.56
7.3.120.0060.00615.07
7.2.330.0100.00716.51
7.2.320.0130.01016.59
7.2.310.0110.00716.66
7.2.300.0070.01016.50
7.2.290.0140.00316.86
7.2.110.0100.01016.70
7.2.80.0110.00316.67
7.2.00.0080.00819.50
7.1.200.0040.01115.86
7.1.100.0050.00818.34
7.1.70.0090.00017.11
7.1.60.0130.01019.33
7.1.50.0000.01016.99
7.1.00.0030.03722.36
7.0.200.0090.00615.03
7.0.140.0030.07322.08
7.0.120.0100.07022.04
7.0.60.0000.07321.73
7.0.50.0200.05317.94
7.0.40.0030.04320.18
7.0.30.0300.08020.16
7.0.20.0230.05020.33
7.0.10.0070.04020.08
7.0.00.0070.04320.07
5.6.280.0070.07021.02
5.6.210.0100.08320.45
5.6.200.0100.08018.15
5.6.190.0070.06020.48
5.6.180.0200.06720.45
5.6.170.0400.07320.45
5.6.160.0070.08020.57
5.6.150.0000.09318.14
5.6.140.0100.08318.28
5.6.130.0230.06318.24
5.6.120.0130.05321.04
5.6.110.0100.08320.99
5.6.100.0030.04021.10
5.6.90.0100.05721.09
5.6.80.0030.08020.36
5.5.350.0000.08720.39
5.5.340.0130.07018.08
5.5.330.0070.08320.25
5.5.320.0770.06320.27
5.5.310.0200.07720.33
5.5.300.0170.06017.95
5.5.290.0100.06717.98
5.5.280.0030.07720.72
5.5.270.0130.05020.86
5.5.260.0100.08020.78
5.5.250.0270.06720.69
5.5.240.0170.03720.25
5.4.450.0070.03719.48
5.4.440.0070.03719.35
5.4.430.0000.04319.46
5.4.420.0000.04019.19
5.4.410.0000.04019.35
5.4.400.0000.04019.01
5.4.390.0030.03719.26
5.4.380.0030.03719.14
5.4.370.0100.03018.92
5.4.360.0070.04018.97
5.4.350.0030.03719.24
5.4.340.0030.03718.85
5.4.320.0100.04719.14
5.4.310.0000.04019.12
5.4.300.0030.07718.97
5.4.290.0100.05019.14
5.4.280.0100.06018.97
5.4.270.0070.04019.25
5.4.260.0100.03319.20
5.4.250.0030.07718.91
5.4.240.0030.07318.91
5.4.230.0030.07319.20
5.4.220.0000.04718.87
5.4.210.0000.04319.14
5.4.200.0000.05019.11
5.4.190.0100.06018.84
5.4.180.0130.06719.14
5.4.170.0100.04319.07
5.4.160.0070.06018.96
5.4.150.0070.07718.83
5.4.140.0130.03716.38
5.4.130.0070.03316.40
5.4.120.0030.07716.51
5.4.110.0100.04316.44
5.4.100.0100.07316.44
5.4.90.0170.06716.32
5.4.80.0070.07316.44
5.4.70.0030.05716.45
5.4.60.0070.04016.28
5.4.50.0030.07316.27
5.4.40.0100.06016.31
5.4.30.0100.04016.25
5.4.20.0070.04716.36
5.4.10.0070.06016.50
5.4.00.0030.03715.84
5.3.290.0030.05714.66
5.3.280.0070.04014.48
5.3.270.0030.06314.64
5.3.260.0130.06314.59
5.3.250.0100.04314.64
5.3.240.0100.03714.48
5.3.230.0030.04314.66
5.3.220.0100.06714.56
5.3.210.0130.07014.55
5.3.200.0030.07714.48
5.3.190.0030.04014.57
5.3.180.0070.07314.55
5.3.170.0130.06714.44
5.3.160.0100.07314.57
5.3.150.0100.07714.61
5.3.140.0030.06014.56
5.3.130.0170.06714.54
5.3.120.0030.07314.54
5.3.110.0030.04314.56
5.3.100.0070.03314.07
5.3.90.0100.04714.04
5.3.80.0070.05313.98
5.3.70.0030.04714.01
5.3.60.0070.04314.05
5.3.50.0070.07313.94
5.3.40.0000.04013.94
5.3.30.0100.07013.86
5.3.20.0070.03313.70
5.3.10.0030.03713.65
5.3.00.0200.03313.65
5.2.170.0000.05311.10
5.2.160.0030.06311.29
5.2.150.0070.03011.17
5.2.140.0000.03311.14
5.2.130.0030.02711.17
5.2.120.0070.05311.09
5.2.110.0070.05011.05
5.2.100.0030.05311.26
5.2.90.0130.02311.16
5.2.80.0070.06311.25
5.2.70.0070.06011.05
5.2.60.0100.06011.09
5.2.50.0070.03011.05
5.2.40.0070.06310.89
5.2.30.0100.05311.02
5.2.20.0030.05711.00
5.2.10.0070.05310.91
5.2.00.0070.03310.63
5.1.60.0130.0279.83
5.1.50.0030.0309.99
5.1.40.0000.0409.88
5.1.30.0070.05310.24
5.1.20.0030.06010.36
5.1.10.0030.04010.14
5.1.00.0000.06010.13
5.0.50.0070.0338.52
5.0.40.0100.0408.38
5.0.30.0000.0478.31
5.0.20.0000.0338.25
5.0.10.0000.0208.16
5.0.00.0030.0278.13
4.4.90.0000.0237.92
4.4.80.0070.0337.92
4.4.70.0000.0407.92
4.4.60.0030.0277.92
4.4.50.0070.0177.92
4.4.40.0070.0537.92
4.4.30.0030.0337.92
4.4.20.0030.0337.92
4.4.10.0070.0237.92
4.4.00.0000.0377.92
4.3.110.0000.0337.92
4.3.100.0070.0237.92
4.3.90.0000.0377.92
4.3.80.0000.0307.92
4.3.70.0000.0207.92
4.3.60.0000.0207.92
4.3.50.0030.0207.92
4.3.40.0000.0337.92
4.3.30.0000.0177.92
4.3.20.0000.0337.92
4.3.10.0000.0407.92
4.3.00.0030.0177.92

preferences:
59.56 ms | 401 KiB | 5 Q