3v4l.org

run code in 300+ PHP versions simultaneously
<?php $comp = '[{"date":"2014-10-04","day:"mon"},{"date":"2014-10-03","day":"tue"}]'; $arr1 = array('date' => '2015-10-04' , 'day' => 'wed'); array_push(json_decode($comp,true),$arr1); echo json_encode($comp);

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.0120.00618.20
8.3.50.0190.00018.05
8.3.40.0090.00618.61
8.3.30.0090.00618.77
8.3.20.0080.00020.21
8.3.10.0050.00320.71
8.3.00.0070.00021.65
8.2.180.0110.00316.50
8.2.170.0110.00322.96
8.2.160.0100.00321.96
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00420.93
8.2.120.0000.00826.35
8.2.110.0030.00622.12
8.2.100.0040.00717.93
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0060.00317.50
8.2.60.0060.00317.91
8.2.50.0030.00618.09
8.2.40.0040.00422.32
8.2.30.0040.00419.43
8.2.20.0000.00817.55
8.2.10.0040.00417.93
8.2.00.0060.00317.97
8.1.280.0140.00725.92
8.1.270.0110.00723.81
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0110.00023.93
8.1.230.0070.00417.70
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0040.00417.25
8.1.180.0070.00018.10
8.1.170.0060.00318.32
8.1.160.0040.00420.54
8.1.150.0040.00418.77
8.1.140.0080.00019.49
8.1.130.0000.00717.61
8.1.120.0030.00317.46
8.1.110.0000.00817.34
8.1.100.0000.00717.33
8.1.90.0080.00017.27
8.1.80.0040.00417.33
8.1.70.0080.00017.41
8.1.60.0030.00617.49
8.1.50.0030.00617.50
8.1.40.0080.00017.54
8.1.30.0000.00817.68
8.1.20.0080.00017.48
8.1.10.0040.00417.45
8.1.00.0060.00317.50
8.0.300.0060.00318.77
8.0.290.0030.00516.75
8.0.280.0030.00318.38
8.0.270.0030.00317.12
8.0.260.0000.00717.10
8.0.250.0030.00316.96
8.0.240.0070.00016.81
8.0.230.0070.00016.84
8.0.220.0000.00716.90
8.0.210.0040.00416.89
8.0.200.0060.00016.93
8.0.190.0000.00816.84
8.0.180.0040.00416.95
8.0.170.0080.00016.81
8.0.160.0070.00016.90
8.0.150.0080.00016.86
8.0.140.0100.00016.80
8.0.130.0000.00613.30
8.0.120.0080.00016.73
8.0.110.0000.00716.87
8.0.100.0000.00816.89
8.0.90.0000.00816.87
8.0.80.0080.00816.79
8.0.70.0000.00716.68
8.0.60.0000.00716.88
8.0.50.0000.00716.75
8.0.30.0150.00016.96
8.0.20.0110.00817.40
8.0.10.0030.00517.04
8.0.00.0080.01016.84
7.4.330.0050.00016.81
7.4.320.0000.00616.50
7.4.300.0070.00016.42
7.4.290.0060.00016.57
7.4.280.0080.00016.56
7.4.270.0030.00316.55
7.4.260.0070.00016.34
7.4.250.0070.00016.41
7.4.240.0000.00616.32
7.4.230.0070.00016.51
7.4.220.0100.00716.43
7.4.210.0060.00716.58
7.4.200.0040.00416.31
7.4.160.0030.01316.36
7.4.150.0030.01317.40
7.4.140.0090.00917.86
7.4.130.0140.00616.45
7.4.120.0090.00816.53
7.4.110.0170.00016.49
7.4.100.0100.00716.62
7.4.90.0070.01016.57
7.4.80.0090.01219.39
7.4.70.0120.00816.36
7.4.60.0130.00616.45
7.4.50.0100.00616.34
7.4.40.0130.00316.18
7.4.30.0110.00716.49
7.4.10.0080.00814.90
7.4.00.0060.01214.95
7.3.330.0030.00313.17
7.3.320.0060.00013.13
7.3.310.0080.00016.39
7.3.300.0000.00716.24
7.3.290.0030.00316.09
7.3.280.0080.00916.27
7.3.270.0100.00717.40
7.3.260.0090.01416.30
7.3.250.0130.00616.25
7.3.240.0120.00416.34
7.3.230.0100.00716.39
7.3.210.0090.00616.50
7.3.200.0050.01519.39
7.3.190.0150.00416.21
7.3.180.0160.00016.24
7.3.170.0060.01216.29
7.3.160.0110.00816.36
7.3.130.0070.01014.52
7.3.120.0060.01014.71
7.3.110.0090.00914.71
7.3.100.0050.01114.67
7.3.90.0060.00614.79
7.3.80.0060.00514.70
7.3.70.0060.00514.64
7.3.60.0040.00914.44
7.3.50.0090.00514.66
7.3.40.0030.01014.62
7.3.30.0030.00914.65
7.3.20.0060.01016.49
7.3.10.0080.00616.59
7.3.00.0030.00816.51
7.2.330.0110.00816.55
7.2.320.0090.00916.67
7.2.310.0120.00916.64
7.2.300.0100.01016.31
7.2.290.0070.01016.49
7.2.260.0070.01315.13
7.2.250.0090.00814.99
7.2.240.0110.00314.99
7.2.230.0070.00614.93
7.2.220.0080.01214.93
7.2.210.0080.00714.91
7.2.200.0110.00114.76
7.2.190.0070.01015.00
7.2.180.0030.00815.01
7.2.170.0070.00514.86
7.2.160.0030.01014.91
7.2.150.0060.00916.66
7.2.140.0030.01016.90
7.2.130.0070.00516.71
7.2.120.0030.01116.68
7.2.110.0070.00816.61
7.2.100.0040.00916.75
7.2.90.0080.00716.67
7.2.80.0070.00516.68
7.2.70.0060.00816.77
7.2.60.0070.00516.82
7.2.50.0040.00716.67
7.2.40.0080.00616.75
7.2.30.0050.00916.84
7.2.20.0060.00816.73
7.2.10.0050.00916.80
7.2.00.0060.00717.27
7.1.330.0060.00715.84
7.1.320.0020.01015.78
7.1.310.0080.00515.64
7.1.300.0070.00615.80
7.1.290.0100.00215.81
7.1.280.0050.00915.72
7.1.270.0020.00915.68
7.1.260.0060.00515.66
7.1.250.0050.00615.79
7.1.240.0070.01015.73
7.1.230.0000.01415.88
7.1.220.0070.00715.74
7.1.210.0100.00315.81
7.1.200.0060.00615.69
7.1.190.0000.01415.79
7.1.180.0030.00915.68
7.1.170.0090.00315.91
7.1.160.0000.01315.83
7.1.150.0030.00615.73
7.1.140.0060.00915.43
7.1.130.0030.01015.52
7.1.120.0070.00715.66
7.1.110.0000.01315.45
7.1.100.0060.00916.83
7.1.90.0070.00315.72
7.1.80.0100.00315.78
7.1.70.0040.00516.33
7.1.60.0090.00517.63
7.1.50.0020.01416.21
7.1.40.0080.00315.70
7.1.30.0040.01115.83
7.1.20.0070.00715.62
7.1.10.0090.00415.82
7.1.00.0080.03819.06
7.0.330.0060.00615.43
7.0.320.0000.01215.47
7.0.310.0030.00915.35
7.0.300.0060.00315.42
7.0.290.0000.01115.46
7.0.280.0120.00315.44
7.0.270.0090.00015.36
7.0.260.0040.00415.38
7.0.250.0100.00315.54
7.0.240.0060.00915.36
7.0.230.0000.01215.58
7.0.220.0000.01215.20
7.0.210.0100.00715.38
7.0.200.0260.00814.91
7.0.190.0110.00315.41
7.0.180.0130.00015.45
7.0.170.0000.01215.25
7.0.160.0000.01515.16
7.0.150.0030.01215.27
7.0.140.0040.00415.20
7.0.130.0040.01415.47
7.0.120.0100.00315.43
7.0.110.0060.00915.32
7.0.100.0070.00415.37
7.0.90.0030.02917.59
7.0.80.0090.02817.51
7.0.70.0050.03917.69
7.0.60.0080.03117.61
7.0.50.0030.02217.90
7.0.40.0020.02716.85
7.0.30.0030.04316.72
7.0.20.0040.03416.83
7.0.10.0040.02116.82
7.0.00.0050.03716.83
5.6.400.0030.01014.52
5.6.390.0040.01113.97
5.6.380.0100.00014.39
5.6.370.0030.01014.34
5.6.360.0040.01113.82
5.6.350.0040.01113.92
5.6.340.0060.00614.27
5.6.330.0030.00514.32
5.6.320.0060.00814.23
5.6.310.0000.01414.49
5.6.300.0060.01014.13
5.6.290.0070.00714.54
5.6.280.0080.04017.62
5.6.270.0030.01414.25
5.6.260.0090.00614.39
5.6.250.0060.00614.11
5.6.240.0080.02717.50
5.6.230.0050.03917.56
5.6.220.0080.03017.31
5.6.210.0030.02717.54
5.6.200.0060.04117.59
5.6.190.0100.04417.79
5.6.180.0030.02717.64
5.6.170.0050.02117.72
5.6.160.0050.02817.63
5.6.150.0020.02717.66
5.6.140.0040.02417.75
5.6.130.0030.03017.62
5.6.120.0020.02917.55
5.6.110.0110.03317.57
5.6.100.0080.04217.63
5.6.90.0090.03317.71
5.6.80.0050.02317.24
5.6.70.0070.03417.25
5.6.60.0030.02117.36
5.6.50.0100.03317.30
5.6.40.0020.02417.31
5.6.30.0050.04217.25
5.6.20.0060.03717.26
5.6.10.0090.02417.41
5.6.00.0030.02617.29
5.5.380.0080.02117.24
5.5.370.0050.03417.28
5.5.360.0050.02217.29
5.5.350.0050.04317.24
5.5.340.0040.02717.62
5.5.330.0020.02517.52
5.5.320.0030.02417.49
5.5.310.0050.02117.55
5.5.300.0040.03717.63
5.5.290.0050.03017.57
5.5.280.0050.02317.47
5.5.270.0000.03717.46
5.5.260.0020.03417.46
5.5.250.0080.03917.40
5.5.240.0050.03617.18
5.5.230.0080.03417.06
5.5.220.0050.03217.08
5.5.210.0080.03116.96
5.5.200.0070.04017.19
5.5.190.0060.03317.18
5.5.180.0060.02517.07
5.5.170.0000.01314.29
5.5.160.0040.03017.13
5.5.150.0030.02617.24
5.5.140.0040.04417.28
5.5.130.0020.03617.12
5.5.120.0080.03317.25
5.5.110.0020.02417.14
5.5.100.0030.04317.16
5.5.90.0050.01817.04
5.5.80.0020.02617.08
5.5.70.0060.02817.06
5.5.60.0000.04517.09
5.5.50.0070.03516.95
5.5.40.0080.02217.14
5.5.30.0000.04716.84
5.5.20.0050.02917.05
5.5.10.0020.02517.15
5.5.00.0050.03717.12

preferences:
43.94 ms | 400 KiB | 5 Q