3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = ['start', 'one', 'two', 'three', 'four']; $p=count($items)-1; $items[$p]="end"; //چاپ آرایه foreach ($items as $items) { echo $items."<br>"; }

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.70.0180.00018.43
8.3.60.0030.01318.43
8.3.50.0140.00717.99
8.3.40.0120.00318.75
8.3.30.0040.01118.73
8.3.20.0060.00319.22
8.3.10.0040.00423.36
8.3.00.0040.00422.50
8.2.190.0140.00016.58
8.2.180.0120.00618.16
8.2.170.0070.00722.96
8.2.160.0070.00721.14
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0050.00322.11
8.2.120.0040.00426.35
8.2.110.0030.00622.25
8.2.100.0060.00619.25
8.2.90.0040.00417.63
8.2.80.0000.00818.71
8.2.70.0040.00417.50
8.2.60.0040.00717.50
8.2.50.0050.00317.63
8.2.40.0040.00419.89
8.2.30.0040.00420.64
8.2.20.0050.00218.10
8.2.10.0000.00818.05
8.2.00.0000.00819.36
8.1.280.0080.00625.92
8.1.270.0070.00022.05
8.1.260.0050.00226.35
8.1.250.0070.00028.09
8.1.240.0030.00620.40
8.1.230.0120.00017.82
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0040.00417.23
8.1.180.0050.00318.10
8.1.170.0070.00017.65
8.1.160.0000.00718.75
8.1.150.0000.00718.91
8.1.140.0040.00418.88
8.1.130.0020.00718.88
8.1.120.0070.00017.34
8.1.110.0040.00417.37
8.1.100.0050.00517.32
8.1.90.0000.00717.50
8.1.80.0020.00517.38
8.1.70.0030.00317.46
8.1.60.0060.00317.46
8.1.50.0030.00617.34
8.1.40.0060.00317.39
8.1.30.0000.00817.59
8.1.20.0030.00517.52
8.1.10.0040.00417.60
8.1.00.0030.00617.38
8.0.300.0000.00718.77
8.0.290.0030.00616.63
8.0.280.0040.00418.34
8.0.270.0070.00017.25
8.0.260.0000.00818.60
8.0.250.0000.00716.92
8.0.240.0030.00316.93
8.0.230.0070.00016.83
8.0.220.0070.00016.91
8.0.210.0070.00016.77
8.0.200.0000.00716.85
8.0.190.0000.00716.91
8.0.180.0040.00416.93
8.0.170.0030.00616.87
8.0.160.0000.00716.93
8.0.150.0040.00816.83
8.0.140.0000.00916.77
8.0.130.0030.00313.39
8.0.120.0080.00016.84
8.0.110.0000.00816.84
8.0.100.0030.00316.95
8.0.90.0080.00016.74
8.0.80.0060.00816.83
8.0.70.0040.00416.73
8.0.60.0000.00716.95
8.0.50.0070.00016.81
8.0.30.0090.01017.15
8.0.20.0100.00917.40
8.0.10.0040.00417.05
8.0.00.0090.01016.70
7.4.330.0000.00715.55
7.4.320.0030.00316.44
7.4.300.0040.00416.49
7.4.290.0040.00416.41
7.4.280.0040.00416.48
7.4.270.0070.00016.50
7.4.260.0100.00016.61
7.4.250.0040.00416.45
7.4.240.0070.00016.51
7.4.230.0030.00316.67
7.4.220.0040.00416.49
7.4.210.0110.00616.53
7.4.200.0040.00316.40
7.4.160.0090.00916.44
7.4.140.0100.00917.86
7.4.130.0120.00616.52
7.4.120.0110.00716.49
7.4.110.0100.00716.48
7.4.100.0190.00316.32
7.4.90.0110.01116.56
7.4.80.0090.00919.39
7.4.70.0050.01016.43
7.4.60.0120.00316.51
7.4.50.0060.00616.42
7.4.40.0150.00616.51
7.4.00.0070.01114.93
7.3.330.0050.00013.08
7.3.320.0000.00613.15
7.3.310.0000.00716.41
7.3.300.0050.00216.30
7.3.290.0050.00216.29
7.3.280.0060.01016.27
7.3.260.0100.00616.54
7.3.240.0090.00916.57
7.3.230.0070.01016.50
7.3.210.0060.01316.32
7.3.200.0100.00616.32
7.3.190.0130.00316.69
7.3.180.0110.00516.37
7.3.170.0080.00816.26
7.3.160.0100.00616.51
7.3.00.0070.01016.59
7.2.330.0130.00416.76
7.2.320.0030.01416.36
7.2.310.0120.00616.41
7.2.300.0140.00316.48
7.2.290.0060.01216.55
7.2.130.0060.01216.83
7.2.120.0090.00316.90
7.2.110.0100.01016.56
7.2.100.0030.01316.68
7.2.90.0380.00415.94
7.2.80.0350.00815.85
7.2.70.0340.00816.03
7.2.60.0440.00616.09
7.2.50.0410.00615.88
7.2.40.0380.00615.93
7.2.30.0620.01215.93
7.2.20.0380.00715.74
7.2.10.0420.00715.88
7.2.00.0510.00815.95
7.1.250.0000.01315.46
7.1.240.0000.01515.93
7.1.230.0110.00615.36
7.1.220.0030.00915.39
7.1.210.0350.00414.78
7.1.200.0400.00814.77
7.1.190.0290.01214.82
7.1.180.0350.00514.61
7.1.170.0550.00914.79
7.1.160.0400.00614.85
7.1.150.0410.00315.01
7.1.140.0420.00614.92
7.1.130.0380.00814.79
7.1.120.0440.00314.61
7.1.110.0360.00914.92
7.1.100.0360.00614.83
7.1.90.0520.00815.01
7.1.80.0660.00814.77
7.1.70.1040.00714.88
7.1.60.0730.01023.90
7.1.50.0810.00923.79
7.1.40.0740.00623.70
7.1.30.0990.01023.82
7.1.20.1100.01223.67
7.1.10.0950.00814.90
7.1.00.0870.00814.81
7.0.330.0070.00715.27
5.6.380.0030.00914.51

preferences:
65.8 ms | 401 KiB | 5 Q