3v4l.org

run code in 300+ PHP versions simultaneously
<?php $year = array(2015,2016); $no = array(1,2,3,4,5,6,7,8,9,10,11,12); $dr = []; foreach ($year as $yr){ foreach($no as $ss){ $dr[$yr][] = array("value" => 12); } } print_r($dr);

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.0060.00918.30
8.3.50.0140.00522.05
8.3.40.0110.00418.84
8.3.30.0070.00718.76
8.3.20.0050.00319.20
8.3.10.0050.00321.77
8.3.00.0080.00019.69
8.2.180.0110.00416.48
8.2.170.0140.00722.96
8.2.160.0070.00719.25
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0000.00818.70
8.2.110.0090.00019.39
8.2.100.0060.00617.93
8.2.90.0040.00419.17
8.2.80.0030.00517.97
8.2.70.0030.00517.50
8.2.60.0000.00918.05
8.2.50.0030.00618.10
8.2.40.0050.00322.15
8.2.30.0030.00619.32
8.2.20.0040.00417.66
8.2.10.0050.00218.00
8.2.00.0050.00218.05
8.1.280.0080.01225.92
8.1.270.0080.00023.72
8.1.260.0080.00026.35
8.1.250.0110.00328.09
8.1.240.0040.00422.02
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0000.00917.11
8.1.180.0000.00718.10
8.1.170.0060.00318.65
8.1.160.0000.00719.02
8.1.150.0070.00018.75
8.1.140.0000.00719.49
8.1.130.0040.00417.71
8.1.120.0080.00017.53
8.1.110.0060.00317.51
8.1.100.0050.00217.45
8.1.90.0040.00417.38
8.1.80.0040.00417.47
8.1.70.0000.00717.50
8.1.60.0040.00417.50
8.1.50.0080.00017.40
8.1.40.0040.00417.42
8.1.30.0040.00417.69
8.1.20.0040.00417.53
8.1.10.0000.00817.45
8.1.00.0000.00717.27
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0000.00718.45
8.0.270.0000.00717.23
8.0.260.0030.00317.13
8.0.250.0000.00616.93
8.0.240.0000.00617.00
8.0.230.0000.00716.95
8.0.220.0040.00416.96
8.0.210.0070.00016.89
8.0.200.0070.00016.84
8.0.190.0040.00416.89
8.0.180.0060.00316.80
8.0.170.0000.00816.91
8.0.160.0030.00316.79
8.0.150.0000.00816.75
8.0.140.0000.01216.75
8.0.130.0030.00313.31
8.0.120.0040.00416.86
8.0.110.0050.00316.90
8.0.100.0040.00416.70
8.0.90.0050.00316.84
8.0.80.0060.01016.77
8.0.70.0060.00316.77
8.0.60.0040.00416.96
8.0.50.0000.00816.95
8.0.30.0110.00917.19
8.0.20.0070.01417.40
8.0.10.0000.00817.08
8.0.00.0060.01016.77
7.4.330.0000.00615.15
7.4.320.0030.00316.59
7.4.300.0030.00316.52
7.4.290.0070.00016.55
7.4.280.0030.00716.55
7.4.270.0030.00316.44
7.4.260.0000.00716.58
7.4.250.0030.00316.43
7.4.240.0000.00716.54
7.4.230.0040.00416.60
7.4.220.0150.00616.63
7.4.210.0070.00716.66
7.4.200.0040.00416.69
7.4.160.0080.00816.57
7.4.150.0140.00317.40
7.4.140.0200.01717.86
7.4.130.0090.00916.61
7.4.120.0090.00816.45
7.4.110.0120.00616.51
7.4.100.0090.00816.42
7.4.90.0110.00716.45
7.4.80.0130.00819.39
7.4.70.0130.00316.46
7.4.60.0170.00316.37
7.4.50.0100.00316.40
7.4.40.0110.00816.38
7.4.30.0050.01316.20
7.4.10.0030.01414.79
7.4.00.0070.00714.79
7.3.330.0000.00813.24
7.3.320.0000.00513.27
7.3.310.0030.00316.38
7.3.300.0000.00616.38
7.3.290.0060.00816.36
7.3.280.0040.01416.40
7.3.270.0110.00617.40
7.3.260.0130.00816.30
7.3.250.0100.00716.33
7.3.240.0090.00916.41
7.3.230.0110.00716.41
7.3.210.0140.00316.43
7.3.200.0090.01216.46
7.3.190.0090.00916.48
7.3.180.0060.01316.47
7.3.170.0040.01516.38
7.3.160.0060.01316.38
7.3.130.0090.00914.99
7.3.120.0060.00914.74
7.3.110.0090.00614.87
7.3.100.0000.01714.85
7.3.90.0100.00314.88
7.3.80.0040.01114.81
7.3.70.0100.00314.75
7.3.60.0030.01314.89
7.3.50.0030.00714.88
7.3.40.0030.00714.87
7.3.30.0100.00314.69
7.3.20.0080.00816.63
7.3.10.0030.00616.70
7.3.00.0030.00716.60
7.2.330.0100.00916.55
7.2.320.0110.00916.39
7.2.310.0160.00016.49
7.2.300.0120.00316.58
7.2.290.0080.00816.64
7.2.260.0170.00315.11
7.2.250.0090.01015.11
7.2.240.0000.01514.98
7.2.230.0030.01215.05
7.2.220.0090.00915.00
7.2.210.0000.01314.68
7.2.200.0060.00615.04
7.2.190.0060.00914.92
7.2.180.0030.00615.18
7.2.170.0000.01015.16
7.2.160.0100.00714.80
7.2.150.0060.00316.63
7.2.140.0060.00617.02
7.2.130.0060.00316.96
7.2.120.0060.01217.01
7.2.110.0120.00817.03
7.2.100.0080.00816.71
7.2.90.0000.01216.84
7.2.80.0090.00916.71
7.2.70.0040.00816.68
7.2.60.0030.00716.84
7.2.50.0060.01016.79
7.2.40.0030.01017.03
7.2.30.0090.00316.86
7.2.20.0000.01316.94
7.2.10.0030.00917.02
7.2.00.0080.00616.69
7.1.330.0070.00715.87
7.1.320.0080.00815.85
7.1.310.0070.00715.98
7.1.300.0030.01015.68
7.1.290.0050.00515.89
7.1.280.0090.00615.90
7.1.270.0040.01215.68
7.1.260.0060.00615.61
7.1.250.0060.00615.78
7.1.240.0040.01215.56
7.1.230.0070.01415.77
7.1.220.0040.00415.87
7.1.210.0030.01315.70
7.1.200.0020.01115.71
7.1.190.0000.00915.80
7.1.180.0040.00715.71
7.1.170.0030.00916.01
7.1.160.0090.00315.86
7.1.150.0110.00415.92
7.1.140.0030.00615.76
7.1.130.0120.00015.66
7.1.120.0030.01015.66
7.1.110.0030.01015.94
7.1.100.0090.00315.89
7.1.90.0060.00615.65
7.1.80.0070.00715.59
7.1.70.0030.01016.46
7.1.60.0090.01117.55
7.1.50.0030.01015.74
7.1.40.0070.00315.64
7.1.30.0090.00615.70
7.1.20.0040.01115.90
7.1.10.0030.00915.95
7.1.00.0090.03718.97
7.0.330.0030.01415.11
7.0.320.0070.01115.45
7.0.310.0070.01315.18
7.0.300.0090.00315.51
7.0.290.0070.00615.29
7.0.280.0070.00715.32
7.0.270.0070.01015.33
7.0.260.0030.01715.27
7.0.250.0000.02015.51
7.0.240.0100.00615.49
7.0.230.0060.01215.61
7.0.220.0070.00715.56
7.0.210.0100.00315.32
7.0.200.0320.00814.94
7.0.190.0120.00015.22
7.0.180.0120.00615.58
7.0.170.0120.00315.45
7.0.160.0070.00415.27
7.0.150.0030.01315.56
7.0.140.0060.00615.54
7.0.130.0100.00715.54
7.0.120.0040.01115.45
7.0.110.0090.00615.47
7.0.100.0090.02417.77
7.0.90.0040.03417.71
7.0.80.0120.03217.57
7.0.70.0110.02117.71
7.0.60.0080.04317.68
7.0.50.0050.02817.87
7.0.40.0100.02216.74
7.0.30.0070.02016.79
7.0.20.0070.03816.78
7.0.10.0060.02316.70
7.0.00.0050.03116.79
5.6.400.0080.00614.45
5.6.390.0090.00914.52
5.6.380.0090.00914.48
5.6.370.0100.00614.71
5.6.360.0040.00714.05
5.6.350.0100.00314.31
5.6.340.0040.00814.84
5.6.330.0080.00814.77
5.6.320.0070.00714.29
5.6.310.0070.01014.50
5.6.300.0130.00314.51
5.6.290.0000.01314.66
5.6.280.0120.03717.68
5.6.270.0030.01214.34
5.6.260.0100.00714.59
5.6.250.0070.02817.55
5.6.240.0020.03017.59
5.6.230.0060.02317.56
5.6.220.0100.02017.54
5.6.210.0100.02817.37
5.6.200.0120.02517.73
5.6.190.0090.02717.70
5.6.180.0090.02317.69
5.6.170.0060.02317.73
5.6.160.0040.03217.71
5.6.150.0050.02617.66
5.6.140.0050.02317.79
5.6.130.0060.03817.75
5.6.120.0020.03017.80
5.6.110.0090.03017.59
5.6.100.0110.02817.80
5.6.90.0100.02017.73
5.6.80.0020.02617.42
5.6.70.0030.03917.41
5.6.60.0020.02717.30
5.6.50.0090.02017.32
5.6.40.0080.04417.32
5.6.30.0100.03817.17
5.6.20.0080.04517.33
5.6.10.0040.05117.28
5.6.00.0130.02517.42
5.5.380.0120.02217.49
5.5.370.0080.02017.43
5.5.360.0090.02217.57
5.5.350.0090.02417.39
5.5.340.0070.02017.41
5.5.330.0080.02317.53
5.5.320.0100.04017.56
5.5.310.0090.03317.44
5.5.300.0020.04917.67
5.5.290.0150.01717.55
5.5.280.0070.02517.62
5.5.270.0060.02117.55
5.5.260.0080.03017.63
5.5.250.0060.02317.45
5.5.240.0030.02717.33
5.5.230.0070.02317.23
5.5.220.0080.02617.38
5.5.210.0110.01817.23
5.5.200.0080.04317.28
5.5.190.0060.04817.30
5.5.180.0120.04217.36
5.5.170.0030.01014.35
5.5.160.0100.03917.17
5.5.150.0060.04917.18
5.5.140.0130.02317.37
5.5.130.0070.04217.19
5.5.120.0100.03817.10
5.5.110.0110.03817.17
5.5.100.0150.02517.18
5.5.90.0110.04117.19
5.5.80.0090.03917.09
5.5.70.0120.03917.23
5.5.60.0090.03717.31
5.5.50.0060.02517.35
5.5.40.0080.02617.27
5.5.30.0100.03517.05
5.5.20.0060.04817.26
5.5.10.0120.03517.32
5.5.00.0100.03817.16

preferences:
36.12 ms | 401 KiB | 5 Q