3v4l.org

run code in 300+ PHP versions simultaneously
<?php $registros = ["manzana", "pera", "naranja", "limon", "mandarina", "melon", "aguacate", "chinola", "melocoton"]; $mostrarRegistros = 2; $paginas = ceil(count($registros)/$mostrarRegistros); $inicio = 0; echo "la cantidad de paginas es: $paginas\n"; for($i = 1; $i <= $paginas; $i++){ echo " |$i| "; }

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.0160.00618.56
8.3.50.0180.00418.07
8.3.40.0070.00718.88
8.3.30.0140.00018.67
8.3.20.0050.00319.34
8.3.10.0040.00423.79
8.3.00.0000.00820.67
8.2.180.0070.01116.75
8.2.170.0060.00922.96
8.2.160.0030.01020.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00818.21
8.2.120.0050.00326.35
8.2.110.0060.00321.03
8.2.100.0060.00617.91
8.2.90.0050.00317.75
8.2.80.0030.00517.97
8.2.70.0000.00817.93
8.2.60.0000.00818.34
8.2.50.0000.00818.10
8.2.40.0000.00819.45
8.2.30.0000.00719.23
8.2.20.0000.00718.20
8.2.10.0040.00418.23
8.2.00.0040.00417.68
8.1.280.0070.00725.92
8.1.270.0070.00719.00
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.92
8.1.230.0060.00619.21
8.1.220.0050.00317.80
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0000.00818.10
8.1.170.0000.00918.57
8.1.160.0040.00418.93
8.1.150.0000.00718.86
8.1.140.0000.00722.22
8.1.130.0040.00422.11
8.1.120.0000.00717.57
8.1.110.0050.00217.52
8.1.100.0100.00017.39
8.1.90.0000.00717.55
8.1.80.0000.00717.57
8.1.70.0040.00417.52
8.1.60.0040.00417.71
8.1.50.0030.00517.57
8.1.40.0080.00017.61
8.1.30.0040.00717.61
8.1.20.0070.00017.71
8.1.10.0080.00017.58
8.1.00.0000.01017.55
8.0.300.0080.00018.77
8.0.290.0070.00016.75
8.0.280.0050.00518.52
8.0.270.0050.00217.25
8.0.260.0070.00018.51
8.0.250.0000.00717.05
8.0.240.0000.00616.94
8.0.230.0030.00316.98
8.0.220.0080.00017.00
8.0.210.0000.00716.98
8.0.200.0070.00016.99
8.0.190.0100.00017.06
8.0.180.0080.00016.95
8.0.170.0030.00616.98
8.0.160.0040.00416.92
8.0.150.0070.00016.79
8.0.140.0030.00616.92
8.0.130.0000.00513.40
8.0.120.0000.00716.90
8.0.110.0000.00816.83
8.0.100.0040.00416.80
8.0.90.0050.00216.87
8.0.80.0050.01416.94
8.0.70.0000.00716.95
8.0.60.0000.00716.98
8.0.50.0000.00817.00
8.0.30.0090.00917.13
8.0.20.0100.01017.42
8.0.10.0040.00416.89
8.0.00.0090.01016.91
7.4.330.0060.00015.55
7.4.320.0030.00316.62
7.4.300.0000.00616.58
7.4.290.0000.00716.57
7.4.280.0070.00016.66
7.4.270.0030.00616.70
7.4.260.0000.00716.58
7.4.250.0000.00716.62
7.4.240.0070.00016.68
7.4.230.0000.00816.65
7.4.220.0040.00416.66
7.4.210.0030.01116.75
7.4.200.0030.00316.55
7.4.160.0090.00916.63
7.4.140.0110.00817.86
7.4.130.0090.00916.39
7.4.120.0120.00716.57
7.4.110.0030.01816.63
7.4.100.0060.01016.75
7.4.90.0090.01516.48
7.4.80.0070.01019.39
7.4.70.0160.00016.54
7.4.60.0090.00616.52
7.4.50.0000.01716.50
7.4.40.0120.00416.32
7.4.00.0070.01115.09
7.3.330.0000.00513.27
7.3.320.0030.00313.29
7.3.310.0040.00416.46
7.3.300.0030.00316.39
7.3.290.0000.00716.37
7.3.280.0050.01016.33
7.3.260.0110.00916.51
7.3.240.0110.00816.51
7.3.230.0190.00016.67
7.3.210.0140.00316.41
7.3.200.0120.00616.51
7.3.190.0130.00716.54
7.3.180.0070.01016.57
7.3.170.0060.01216.55
7.3.160.0060.01516.39
7.3.10.0030.01016.49
7.3.00.0100.00716.52
7.2.330.0060.01116.86
7.2.320.0030.01516.63
7.2.310.0100.00716.80
7.2.300.0090.00616.67
7.2.290.0070.01016.69
7.2.130.0030.00716.73
7.2.120.0080.00816.73
7.2.110.0280.00715.88
7.2.100.0500.00815.88
7.2.90.0320.00315.89
7.2.80.0540.01215.73
7.2.70.0300.00816.09
7.2.60.0370.00815.95
7.2.50.0310.00515.92
7.2.40.0280.00415.76
7.2.30.0340.00915.80
7.2.20.0350.00716.03
7.2.10.0320.01015.88
7.2.00.0490.00615.85
7.1.250.0030.01215.85
7.1.240.0040.00715.99
7.1.230.0490.01114.79
7.1.220.0270.00714.74
7.1.210.0520.00614.74
7.1.200.0230.01214.77
7.1.190.0450.00614.80
7.1.180.0370.01014.79
7.1.170.0270.00714.86
7.1.160.0330.00714.90
7.1.150.0250.01014.96
7.1.140.0320.01014.64
7.1.130.0510.01214.62
7.1.120.0320.01014.54
7.1.110.0310.00614.73
7.1.100.0350.00814.96
7.1.90.0340.00214.80
7.1.80.0510.00514.87
7.1.70.0330.00714.71
7.1.60.0370.01223.78
7.1.50.0530.01123.86
7.1.40.0730.00923.66
7.1.30.0660.01023.76
7.1.20.0720.00823.78
7.1.10.0670.00514.74
7.1.00.0340.00514.70
7.0.330.0030.01415.25
5.6.380.0050.00914.28

preferences:
91.58 ms | 400 KiB | 5 Q