3v4l.org

run code in 300+ PHP versions simultaneously
<ul> <?php $values = array(); $values[] = array('example'=>'example1','date'=>'2016-12-25'); $values[] = array('example'=>'example2','date'=>'2016-12-26'); $values[] = array('example'=>'example3','date'=>'2016-12-28'); $values[] = array('example'=>'example4','date'=>'2016-12-30'); $previous = null; foreach($values as $example){ echo "<li>".$example['example']." - ".$example['date']; if ($previous !== null) { $diff = strtotime($example['date'])-strtotime($previous); echo " - ".($diff/(60*60*24)); } $previous = $example['date']; echo "</li>\n"; } ?> </ul>

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.00318.55
8.3.50.0100.00316.48
8.3.40.0100.00518.88
8.3.30.0110.00418.92
8.3.20.0050.00320.98
8.3.10.0030.00521.90
8.3.00.0090.00018.05
8.2.180.0060.01325.92
8.2.170.0110.00719.07
8.2.160.0110.00422.96
8.2.150.0000.00724.18
8.2.140.0110.00424.66
8.2.130.0040.00419.08
8.2.120.0040.00426.35
8.2.110.0040.00419.27
8.2.100.0080.00317.97
8.2.90.0040.00419.00
8.2.80.0080.00017.97
8.2.70.0030.00617.75
8.2.60.0040.00418.05
8.2.50.0000.00818.22
8.2.40.0050.00320.63
8.2.30.0060.00319.39
8.2.20.0070.00018.12
8.2.10.0050.00318.09
8.2.00.0090.00017.98
8.1.280.0080.00825.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00419.38
8.1.230.0070.00417.89
8.1.220.0040.00417.91
8.1.210.0030.00618.77
8.1.200.0060.00317.48
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.00818.77
8.1.160.0020.00518.93
8.1.150.0000.00820.15
8.1.140.0000.00819.68
8.1.130.0000.00820.84
8.1.120.0000.00717.61
8.1.110.0000.00817.65
8.1.100.0000.00717.57
8.1.90.0030.00517.67
8.1.80.0070.00017.68
8.1.70.0040.00417.58
8.1.60.0040.00417.73
8.1.50.0030.00517.56
8.1.40.0040.00417.65
8.1.30.0080.00017.64
8.1.20.0000.00817.79
8.1.10.0000.00717.71
8.1.00.0050.00317.60
8.0.300.0050.00218.77
8.0.290.0070.00016.88
8.0.280.0000.00718.60
8.0.270.0000.00717.04
8.0.260.0030.00317.22
8.0.250.0030.00317.05
8.0.240.0020.00517.16
8.0.230.0030.00317.07
8.0.220.0030.00317.15
8.0.210.0040.00317.19
8.0.200.0000.00617.18
8.0.190.0080.00017.20
8.0.180.0000.00816.99
8.0.170.0000.00717.03
8.0.160.0070.00017.03
8.0.150.0040.00417.12
8.0.140.0030.00417.09
8.0.130.0000.00513.54
8.0.120.0000.00816.97
8.0.110.0040.00417.18
8.0.100.0040.00417.10
8.0.90.0000.00717.23
8.0.80.0060.01517.07
8.0.70.0040.00417.04
8.0.60.0040.00417.17
8.0.50.0020.00516.95
8.0.30.0100.01017.12
8.0.20.0140.00817.45
8.0.10.0080.00017.20
8.0.00.0030.01716.85
7.4.330.0050.00015.55
7.4.320.0040.00416.64
7.4.300.0000.01016.66
7.4.290.0000.00716.76
7.4.280.0030.00616.57
7.4.270.0000.00716.81
7.4.260.0030.00316.65
7.4.250.0000.00716.73
7.4.240.0000.00816.74
7.4.230.0040.00416.79
7.4.220.0090.00616.84
7.4.210.0130.00916.84
7.4.200.0070.00016.58
7.4.160.0070.00916.69
7.4.150.0080.01117.40
7.4.140.0090.01117.86
7.4.130.0130.00416.71
7.4.120.0140.01016.68
7.4.110.0090.01116.45
7.4.100.0040.01416.65
7.4.90.0130.00416.70
7.4.80.0110.00818.01
7.4.70.0110.00616.66
7.4.60.0100.00716.72
7.4.50.0090.00916.63
7.4.40.0100.00816.66
7.4.30.0110.00716.73
7.4.20.0070.01316.65
7.4.10.0050.01116.67
7.4.00.0060.01116.26
7.3.330.0000.00513.27
7.3.320.0000.00513.23
7.3.310.0030.00316.31
7.3.300.0000.00716.44
7.3.290.0040.01216.47
7.3.280.0090.00816.51
7.3.270.0100.00717.40
7.3.260.0100.00916.55
7.3.250.0080.00916.73
7.3.240.0100.00616.78
7.3.230.0110.00816.51
7.3.220.0140.00616.55
7.3.210.0090.00916.60
7.3.200.0130.00516.72
7.3.190.0120.00816.56
7.3.180.0110.00616.76
7.3.170.0090.01116.47
7.3.160.0050.01116.69
7.3.150.0120.00616.52
7.3.140.0090.00916.54
7.3.130.0060.01116.56
7.3.120.0100.00716.47
7.3.110.0120.00716.55
7.3.100.0110.00816.76
7.3.90.0140.00316.53
7.3.80.0100.00716.50
7.3.70.0070.01016.57
7.3.60.0140.00316.52
7.3.50.0100.00716.49
7.3.40.0090.00816.58
7.3.30.0090.00615.98
7.3.20.0780.00915.98
7.3.10.0550.00916.17
7.3.00.0710.00916.23
7.2.340.0170.00316.38
7.2.330.0120.00716.82
7.2.320.0150.00616.96
7.2.310.0110.00816.66
7.2.300.0110.01016.73
7.2.290.0100.01116.85
7.2.280.0120.00916.81
7.2.270.0100.00916.81
7.2.260.0100.00816.71
7.2.250.0090.00916.80
7.2.240.0080.00916.81
7.2.230.0080.00916.72
7.2.220.0060.01016.73
7.2.210.0150.00216.71
7.2.200.0070.01016.68
7.2.190.0070.01216.69
7.2.180.0100.00716.83
7.2.170.0160.00316.73
7.2.160.0090.01016.24
7.2.150.0790.00916.14
7.2.140.0740.01016.12
7.2.130.0750.00816.50
7.2.120.0740.00416.40
7.2.110.0650.00616.49
7.2.100.0660.00916.47
7.2.90.0650.00616.43
7.2.80.0540.01016.56
7.2.70.0460.01116.48
7.2.60.0420.00816.61
7.2.50.0460.01016.63
7.2.40.0390.00716.40
7.2.30.0510.01316.60
7.2.20.0520.00916.39
7.2.10.0480.00916.38
7.2.00.0530.00816.47
7.1.330.0220.00815.72
7.1.320.0230.00615.93
7.1.310.0380.00715.81
7.1.300.0200.01115.68
7.1.290.0280.00215.59
7.1.280.0210.00815.72
7.1.270.0810.01515.21
7.1.260.0910.01015.18
7.1.250.0730.00515.33
7.1.240.0750.01715.13
7.1.230.0750.01115.08
7.1.220.0880.00615.17
7.1.210.0980.00915.24
7.1.200.0750.00915.32
7.1.190.0690.00815.24
7.1.180.0800.01115.18
7.1.170.0800.01015.20
7.1.160.0670.00815.08
7.1.150.0610.01215.24
7.1.140.0830.00815.22
7.1.130.0810.01215.20
7.1.120.0200.00715.13
7.1.110.0300.00715.18
7.1.100.0380.01015.19
7.1.90.0640.01015.20
7.1.80.0650.00715.15
7.1.70.0400.00515.70
7.1.60.0390.01115.75
7.1.50.0450.00815.30
7.1.40.0400.01115.25
7.1.30.0630.00515.22
7.1.20.0440.00915.24
7.1.10.0560.00615.16
7.1.00.0730.01716.48
7.0.330.1010.00814.84
7.0.320.0720.00914.83
7.0.310.0920.00814.86
7.0.300.0740.00814.84
7.0.290.0780.00814.91
7.0.280.0640.01014.86
7.0.270.0440.00814.82
7.0.260.0430.01014.82
7.0.250.0680.00814.99
7.0.240.0660.01014.89
7.0.230.0630.00514.83
7.0.220.0480.01114.93
7.0.210.0430.01014.83
7.0.200.0380.01114.88
7.0.190.0470.00714.84
7.0.180.1450.01514.81
7.0.170.0480.00814.82
7.0.160.0360.00514.79
7.0.150.0370.00814.79
7.0.140.0610.02116.22
7.0.130.0610.02316.17
7.0.120.0640.01816.06
7.0.110.0620.02016.22
7.0.100.0580.01816.08
7.0.90.0580.02716.16
7.0.80.0530.01916.23
7.0.70.0560.01816.08
7.0.60.0470.02416.23
7.0.50.0660.03016.23
7.0.40.0530.02616.11
7.0.30.0580.02116.17
7.0.20.0560.02716.14
7.0.10.0630.01816.15
7.0.00.0540.02116.10
5.6.400.0160.01315.50
5.6.390.0180.00915.58
5.6.380.0170.01115.65
5.6.370.0200.00715.61
5.6.360.0150.01215.74
5.6.350.0180.00715.68
5.6.340.0220.00715.75
5.6.330.0140.01715.76
5.6.320.0160.00815.73
5.6.310.0130.00815.58
5.6.300.0200.01215.59
5.6.290.0170.02417.02
5.6.280.0150.02716.89
5.6.270.0190.02316.86
5.6.260.0190.02017.06
5.6.250.0150.02216.83
5.6.240.0150.02117.07
5.6.230.0130.02216.91
5.6.220.0150.02116.78
5.6.210.0140.02316.94
5.6.200.0120.03116.90
5.6.190.0170.02416.95
5.6.180.0210.01916.89
5.6.170.0170.02316.91
5.6.160.0200.01816.90
5.6.150.0140.02116.82
5.6.140.0150.02316.92
5.6.130.0150.02216.88
5.6.120.0180.02516.92
5.6.110.0150.02316.91
5.6.100.0150.02216.84
5.6.90.0200.01617.01
5.6.80.0120.02316.60
5.6.70.0150.02316.65
5.6.60.0190.01816.70
5.6.50.0180.01916.84
5.6.40.0120.02616.62
5.6.30.0130.02416.66
5.6.20.0190.02016.69
5.6.10.0150.02116.74
5.6.00.0200.01816.54

preferences:
70.59 ms | 400 KiB | 5 Q