3v4l.org

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

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.0030.01218.18
8.3.50.0170.00018.18
8.3.40.0080.00818.89
8.3.30.0060.00918.84
8.3.20.0000.00818.99
8.3.10.0000.00823.43
8.3.00.0040.00422.44
8.2.180.0030.01618.54
8.2.170.0110.00322.96
8.2.160.0070.00721.17
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00022.24
8.2.120.0080.00026.35
8.2.110.0060.00322.31
8.2.100.0120.00017.78
8.2.90.0000.00817.91
8.2.80.0050.00318.97
8.2.70.0080.00017.80
8.2.60.0040.00417.50
8.2.50.0000.00818.10
8.2.40.0030.00521.07
8.2.30.0000.00720.61
8.2.20.0020.00518.10
8.2.10.0000.00717.99
8.2.00.0000.00719.51
8.1.280.0040.01125.92
8.1.270.0080.00022.13
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0050.00523.92
8.1.230.0070.00422.66
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0050.00317.36
8.1.180.0060.00318.10
8.1.170.0040.00418.89
8.1.160.0040.00418.89
8.1.150.0000.00718.91
8.1.140.0020.00519.08
8.1.130.0040.00418.91
8.1.120.0030.00417.48
8.1.110.0050.00317.48
8.1.100.0000.00917.48
8.1.90.0040.00417.49
8.1.80.0050.00217.45
8.1.70.0070.00017.47
8.1.60.0030.00517.48
8.1.50.0040.00417.51
8.1.40.0050.00317.52
8.1.30.0040.00417.57
8.1.20.0000.00717.53
8.1.10.0000.00717.36
8.1.00.0090.00017.43
8.0.300.0050.00220.16
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0050.00217.10
8.0.260.0000.00718.99
8.0.250.0040.00416.85
8.0.240.0060.00016.86
8.0.230.0030.00316.88
8.0.220.0030.00316.69
8.0.210.0040.00416.82
8.0.200.0030.00516.88
8.0.190.0040.00416.94
8.0.180.0000.00816.87
8.0.170.0050.00316.82
8.0.160.0000.00716.90
8.0.150.0030.00716.85
8.0.140.0080.00016.77
8.0.130.0030.00313.39
8.0.120.0070.00016.73
8.0.110.0030.00516.90
8.0.100.0000.00716.86
8.0.90.0090.00016.86
8.0.80.0050.01216.84
8.0.70.0030.00516.92
8.0.60.0000.00816.70
8.0.50.0040.00416.88
8.0.30.0100.00917.04
8.0.20.0060.01317.40
8.0.10.0040.00417.04
8.0.00.0070.01116.75
7.4.330.0000.00515.55
7.4.320.0000.00616.58
7.4.300.0000.00716.40
7.4.290.0000.00816.49
7.4.280.0070.00016.53
7.4.270.0030.00516.60
7.4.260.0060.00316.47
7.4.250.0040.00416.45
7.4.240.0030.00316.59
7.4.230.0050.00216.62
7.4.220.0060.00316.69
7.4.210.0020.01216.55
7.4.200.0070.00016.47
7.4.160.0090.00916.46
7.4.140.0090.00917.86
7.4.130.0140.00416.40
7.4.120.0110.00716.56
7.4.110.0160.00416.49
7.4.100.0060.01616.50
7.4.90.0030.01516.37
7.4.80.0120.00519.39
7.4.70.0110.01316.32
7.4.60.0040.01216.49
7.4.50.0070.00716.09
7.4.40.0130.01016.33
7.4.10.0130.00314.84
7.4.00.0140.00314.94
7.3.330.0060.00013.00
7.3.320.0000.00613.17
7.3.310.0030.00316.17
7.3.300.0030.00316.34
7.3.290.0060.00016.23
7.3.280.0030.01316.29
7.3.260.0120.00916.37
7.3.240.0110.01116.33
7.3.230.0140.00316.33
7.3.210.0130.00316.30
7.3.200.0090.00916.30
7.3.190.0100.00716.43
7.3.180.0100.00716.38
7.3.170.0130.00316.55
7.3.160.0130.00316.30
7.3.130.0150.00314.58
7.3.120.0040.01214.95
7.3.110.0090.00914.82
7.3.100.0070.00714.46
7.3.90.0100.01014.89
7.3.80.0080.00614.76
7.3.70.0030.01414.82
7.3.60.0090.00914.84
7.3.50.0120.00014.62
7.3.40.0030.01215.06
7.3.30.0070.01014.80
7.3.20.0070.00716.72
7.3.10.0090.00316.90
7.3.00.0000.01416.53
7.2.330.0140.00316.37
7.2.320.0090.01016.69
7.2.310.0120.01216.66
7.2.300.0060.01716.41
7.2.290.0130.00716.57
7.2.260.0030.01015.00
7.2.250.0060.01014.89
7.2.240.0080.00815.21
7.2.230.0040.00815.03
7.2.220.0120.00414.79
7.2.210.0030.01015.04
7.2.200.0070.01115.00
7.2.190.0060.01214.95
7.2.180.0060.00614.93
7.2.170.0060.00914.98
7.2.160.0110.00414.86
7.2.150.0070.00716.69
7.2.140.0030.00916.88
7.2.130.0100.00316.79
7.2.120.0030.00916.87
7.2.110.0040.01116.95
7.2.100.0000.01516.90
7.2.90.0420.00515.81
7.2.80.0490.00815.68
7.2.70.0560.00315.86
7.2.60.0510.00915.98
7.2.50.0470.00815.83
7.2.40.0500.00815.92
7.2.30.0750.00816.00
7.2.20.0910.00615.66
7.2.10.0500.00815.91
7.2.00.0500.00415.96
7.1.330.0150.00315.65
7.1.320.0100.01015.91
7.1.310.0030.00615.79
7.1.300.0060.01115.70
7.1.290.0000.01015.93
7.1.280.0040.00415.70
7.1.270.0070.00715.93
7.1.260.0000.00815.77
7.1.250.0040.00415.70
7.1.240.0030.01015.80
7.1.230.0030.01315.70
7.1.220.0060.00615.96
7.1.210.0800.00314.72
7.1.200.0430.00914.79
7.1.190.0460.00614.62
7.1.180.0520.00815.05
7.1.170.0420.01114.74
7.1.160.0540.00814.88
7.1.150.0450.00514.87
7.1.140.0520.00514.91
7.1.130.0720.00514.65
7.1.120.0510.00414.84
7.1.110.0500.00714.97
7.1.100.0500.00514.99
7.1.90.0860.00614.93
7.1.80.0760.00714.78
7.1.70.0640.00514.83
7.1.60.0640.01023.70
7.1.50.0850.00723.85
7.1.40.0880.00823.97
7.1.30.0960.00923.70
7.1.20.1020.00323.79
7.1.10.0850.01014.88
7.1.00.0670.01214.89
7.0.330.0110.00415.50
7.0.320.0060.00615.26
7.0.310.0100.00315.18
7.0.300.0070.00315.39
7.0.290.0030.00515.34
7.0.280.0000.01215.47
7.0.270.0060.01215.20
7.0.260.0110.00415.18
7.0.250.0030.01015.57
7.0.240.0060.00615.42
7.0.230.0070.00715.58
7.0.220.0000.01115.58
7.0.210.0070.00415.63
7.0.200.0110.00415.46
7.0.190.0100.00315.02
7.0.180.0110.00315.49
7.0.170.0100.00015.27
7.0.160.0030.00515.41
7.0.150.0050.00315.20
7.0.140.0050.00315.64
7.0.130.0050.00515.50
7.0.120.0000.01015.18
7.0.110.0080.00815.27
7.0.100.0120.00415.46
7.0.90.0070.00715.36
7.0.80.0000.01015.48
7.0.70.0000.01015.60
7.0.60.0030.00715.32
7.0.50.0040.00415.47
7.0.40.0060.00813.57
7.0.30.0070.00713.55
7.0.20.0000.01113.57
7.0.10.0000.00813.53
7.0.00.0030.01013.51
5.6.400.0040.01114.43
5.6.390.0110.00014.49
5.6.380.0090.00614.23
5.6.370.0120.00314.24
5.6.360.0060.01014.39
5.6.350.0000.01014.45
5.6.340.0040.00714.37
5.6.330.0090.00014.30
5.6.320.0040.01114.35
5.6.310.0090.00314.45
5.6.300.0100.00014.63
5.6.290.0060.00614.59
5.6.280.0070.00714.17
5.6.270.0060.00914.13
5.6.260.0110.00714.35
5.6.250.0030.01414.38
5.6.240.0030.00614.44
5.6.230.0060.00314.30
5.6.220.0030.00714.50
5.6.210.0040.01114.24
5.6.200.0000.01114.41
5.6.190.0040.01114.34
5.6.180.0080.00614.19
5.6.170.0110.00414.04
5.6.160.0060.00614.39
5.6.150.0060.00614.48
5.6.140.0060.00914.30
5.6.130.0070.00714.31
5.6.120.0030.01314.54
5.6.110.0000.01114.43
5.6.100.0030.00714.21
5.6.90.0080.00014.46
5.6.80.0000.00914.29
5.6.70.0030.00614.06
5.6.60.0040.00814.43
5.6.50.0000.01114.23
5.6.40.0000.01114.41
5.6.30.0090.00014.40
5.6.20.0050.00514.01
5.6.10.0000.00814.48
5.6.00.0000.01114.34

preferences:
65.97 ms | 401 KiB | 5 Q