3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( array( 'id' => 1, 'automobile' => 'Mustang', 'coloroptions' => '[{"color":"red"},{"color":"blue"},{"color":"green"}]' ), ); 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.0140.00716.50
8.3.50.0100.00821.92
8.3.40.0140.00018.56
8.3.30.0000.01418.58
8.3.20.0070.00020.27
8.3.10.0070.00021.73
8.3.00.0040.00419.26
8.2.180.0090.00916.50
8.2.170.0070.00722.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00920.39
8.2.120.0070.00026.35
8.2.110.0110.00021.11
8.2.100.0120.00017.78
8.2.90.0050.00618.94
8.2.80.0000.00817.97
8.2.70.0040.00717.50
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0000.00819.41
8.2.30.0060.00320.68
8.2.20.0030.00717.71
8.2.10.0000.00717.85
8.2.00.0030.00618.04
8.1.280.0140.00425.92
8.1.270.0070.00723.84
8.1.260.0040.00428.09
8.1.250.0090.00028.09
8.1.240.0090.00022.14
8.1.230.0030.00718.98
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0080.00017.10
8.1.190.0070.00417.00
8.1.180.0040.00418.10
8.1.170.0040.00418.66
8.1.160.0040.00422.01
8.1.150.0040.00418.86
8.1.140.0000.00819.41
8.1.130.0000.00717.58
8.1.120.0040.00417.32
8.1.110.0000.00717.25
8.1.100.0000.00717.32
8.1.90.0050.00317.27
8.1.80.0070.00017.40
8.1.70.0070.00017.23
8.1.60.0000.00717.56
8.1.50.0000.00917.46
8.1.40.0040.00417.42
8.1.30.0000.00817.55
8.1.20.0040.00417.50
8.1.10.0040.00417.44
8.1.00.0040.00417.39
8.0.300.0060.00320.30
8.0.290.0000.00816.59
8.0.280.0030.00318.38
8.0.270.0070.00017.22
8.0.260.0060.00017.08
8.0.250.0040.00416.93
8.0.240.0000.00616.88
8.0.230.0080.00016.81
8.0.220.0030.00316.70
8.0.210.0000.00716.81
8.0.200.0000.00716.77
8.0.190.0070.00016.90
8.0.180.0000.00816.88
8.0.170.0000.00816.75
8.0.160.0030.00516.80
8.0.150.0000.00716.75
8.0.140.0040.00416.67
8.0.130.0050.00013.30
8.0.120.0060.00316.76
8.0.110.0000.00816.71
8.0.100.0000.00716.76
8.0.90.0030.00316.82
8.0.80.0110.00416.79
8.0.70.0040.00416.69
8.0.60.0070.00016.69
8.0.50.0030.00616.77
8.0.30.0110.00717.08
8.0.20.0150.00517.40
8.0.10.0000.00716.92
8.0.00.0120.00716.78
7.4.330.0000.00616.69
7.4.320.0040.00416.50
7.4.300.0000.00616.35
7.4.290.0030.00316.38
7.4.280.0030.00616.49
7.4.270.0070.00016.54
7.4.260.0110.00016.41
7.4.250.0050.00316.37
7.4.240.0030.00316.40
7.4.230.0000.00716.60
7.4.220.0180.00016.45
7.4.210.0130.00616.52
7.4.200.0070.00016.57
7.4.160.0090.00616.50
7.4.150.0040.01817.40
7.4.140.0070.01117.86
7.4.130.0090.00816.36
7.4.120.0080.01316.36
7.4.110.0030.01916.37
7.4.100.0120.01216.41
7.4.90.0110.00816.20
7.4.80.0150.00919.39
7.4.70.0090.01316.20
7.4.60.0030.01316.25
7.4.50.0000.01416.41
7.4.40.0070.01016.48
7.4.30.0170.00316.46
7.4.00.0040.01214.63
7.3.330.0050.00013.12
7.3.320.0030.00313.11
7.3.310.0060.00016.21
7.3.300.0000.00616.08
7.3.290.0070.00816.18
7.3.280.0080.00916.10
7.3.270.0120.00617.40
7.3.260.0120.01216.44
7.3.250.0120.00916.19
7.3.240.0080.00916.12
7.3.230.0070.01016.39
7.3.210.0120.00616.27
7.3.200.0160.00016.13
7.3.190.0070.01016.28
7.3.180.0100.01016.36
7.3.170.0070.01016.45
7.3.160.0100.00716.41
7.2.330.0070.01016.50
7.2.320.0130.00516.23
7.2.310.0090.00916.53
7.2.300.0070.01016.48
7.2.290.0060.01016.23
7.2.60.0000.01616.52
7.2.00.0100.00719.16
7.1.200.0000.01315.88
7.1.100.0040.01117.98
7.1.70.0040.00416.70
7.1.60.0120.01219.36
7.1.50.0040.00716.88
7.1.00.0070.08022.51
7.0.200.0030.00616.72
7.0.60.0030.07019.92
7.0.50.0070.08017.73
7.0.40.0030.04320.13
7.0.30.0200.05720.15
7.0.20.0300.06720.16
7.0.10.0070.04320.16
7.0.00.0130.08320.07
5.6.280.0100.05021.14
5.6.210.0070.07320.69
5.6.200.0130.07718.25
5.6.190.0000.05020.39
5.6.180.0470.03320.77
5.6.170.0230.03720.51
5.6.160.0170.07020.43
5.6.150.0030.05718.15
5.6.140.0130.07318.14
5.6.130.0100.08018.23
5.6.120.0170.07320.96
5.6.110.0030.06021.13
5.6.100.0170.03021.02
5.6.90.0030.05720.98
5.6.80.0130.04720.35
5.5.350.0100.06020.39
5.5.340.0070.06318.07
5.5.330.0130.07020.31
5.5.320.0000.04720.51
5.5.310.0270.08020.41
5.5.300.0100.05018.03
5.5.290.0130.07318.08
5.5.280.0000.09320.64
5.5.270.0030.04020.88
5.5.260.0230.06020.67
5.5.250.0070.05320.49
5.5.240.0300.06020.27

preferences:
48.06 ms | 401 KiB | 5 Q