3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ordinalFormatter = new NumberFormatter('en', NumberFormatter::ORDINAL); $numbers = range(1, 30); $ordinals = []; array_walk($numbers, function ($number) use ($ordinalFormatter, $ordinals) { $ordinals[] = $ordinalFormatter->format($number); }); printf("Ordinals: %s\n", implode(', ', $ordinals));

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.0040.01120.81
8.3.60.0150.00019.38
8.3.50.0110.00420.80
8.3.40.0160.00620.42
8.3.30.0160.00320.30
8.3.20.0080.00021.96
8.3.10.0030.00621.96
8.3.00.0050.00325.19
8.2.180.0140.00719.00
8.2.170.0100.00622.96
8.2.160.0030.01121.80
8.2.150.0030.00524.18
8.2.140.0060.00324.66
8.2.130.0040.00423.96
8.2.120.0040.00426.35
8.2.110.0050.00523.23
8.2.100.0130.00020.09
8.2.90.0040.00420.84
8.2.80.0060.00319.75
8.2.70.0040.00419.75
8.2.60.0060.00319.99
8.2.50.0090.00020.16
8.2.40.0040.00424.11
8.2.30.0000.00821.05
8.2.20.0040.00420.20
8.2.10.0030.00620.39
8.2.00.0000.01020.25
8.1.280.0140.00725.92
8.1.270.0060.00322.19
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0070.00325.59
8.1.230.0090.00322.07
8.1.220.0100.00019.91
8.1.210.0030.00619.60
8.1.200.0060.00319.49
8.1.190.0040.00419.60
8.1.180.0060.00319.78
8.1.170.0030.00620.84
8.1.160.0050.00320.64
8.1.150.0000.00821.72
8.1.140.0050.00319.89
8.1.130.0040.00420.56
8.1.120.0040.00419.86
8.1.110.0030.00619.52
8.1.100.0040.00419.80
8.1.90.0000.00819.53
8.1.80.0060.00319.91
8.1.70.0060.00319.73
8.1.60.0050.00319.97
8.1.50.0030.00619.62
8.1.40.0060.00319.66
8.1.30.0060.00320.08
8.1.20.0040.00420.09
8.1.10.0000.00819.84
8.1.00.0030.00619.71
8.0.300.0000.00919.05
8.0.290.0000.00918.88
8.0.280.0040.00720.13
8.0.270.0040.00419.40
8.0.260.0050.00220.56
8.0.250.0000.00819.12
8.0.240.0030.00619.15
8.0.230.0000.00819.36
8.0.220.0000.00719.07
8.0.210.0000.00719.08
8.0.200.0000.00719.12
8.0.190.0100.00319.01
8.0.180.0000.00919.14
8.0.170.0040.00419.13
8.0.160.0080.00019.16
8.0.150.0000.00818.93
8.0.140.0030.00718.91
8.0.130.0050.00013.34
8.0.120.0100.00019.31
8.0.110.0000.00819.21
8.0.100.0040.00419.09
8.0.90.0080.00019.27
8.0.80.0100.00719.33
8.0.70.0040.00419.30
8.0.60.0080.00019.28
8.0.50.0080.00019.30
8.0.30.0070.01319.37
8.0.20.0090.01119.50
8.0.10.0040.00419.35
8.0.00.0110.00819.25
7.4.330.0050.00015.55
7.4.320.0050.00219.06
7.4.300.0070.00018.97
7.4.290.0000.00718.66
7.4.280.0000.00818.88
7.4.270.0040.00419.07
7.4.260.0000.00719.05
7.4.250.0040.00419.00
7.4.240.0040.00418.90
7.4.230.0040.00418.79
7.4.220.0100.01018.98
7.4.210.0090.01019.05
7.4.200.0030.00518.99
7.4.160.0090.00818.75
7.4.150.0140.00718.76
7.4.140.0080.01418.82
7.4.130.0170.00718.64
7.4.120.0090.01118.83
7.4.110.0060.01218.87
7.4.100.0120.00619.11
7.4.90.0100.01318.84
7.4.80.0060.01319.39
7.4.70.0100.01018.65
7.4.60.0110.00618.75
7.4.50.0060.00918.79
7.4.40.0230.00418.99
7.4.30.0140.00318.91
7.4.10.0130.01017.38
7.4.00.0050.00917.18
7.3.330.0000.00613.30
7.3.320.0000.00513.28
7.3.310.0040.00418.60
7.3.300.0000.00718.56
7.3.290.0000.00818.67
7.3.280.0070.01218.70
7.3.270.0030.01518.96
7.3.260.0150.01218.79
7.3.250.0050.01518.91
7.3.240.0050.01518.79
7.3.230.0140.00719.00
7.3.210.0040.01418.95
7.3.200.0090.01518.86
7.3.190.0040.01418.98
7.3.180.0090.01518.77
7.3.170.0060.01319.05
7.3.160.0060.01218.73
7.3.130.0090.01217.10
7.3.120.0130.00917.21
7.3.110.0160.00516.98
7.3.100.0060.00317.07
7.3.90.0060.00917.07
7.3.80.0060.00617.13
7.3.70.0070.00717.41
7.3.60.0040.01117.25
7.3.50.0100.00317.39
7.3.40.0030.00917.13
7.3.30.0030.00617.02
7.3.20.0030.00918.57
7.3.10.0050.01018.68
7.3.00.0050.01118.63
7.2.330.0110.00719.13
7.2.320.0070.01018.88
7.2.310.0060.01219.15
7.2.300.0100.01018.96
7.2.290.0100.00718.84
7.2.260.0060.01517.21
7.2.250.0090.01217.47
7.2.240.0070.01017.13
7.2.230.0100.00717.53
7.2.220.0060.00617.32
7.2.210.0070.01017.32
7.2.200.0080.00817.19
7.2.190.0110.00217.34
7.2.180.0000.00917.42
7.2.170.0000.01517.04
7.2.160.0000.00917.05
7.2.150.0090.00619.11
7.2.140.0070.00718.96
7.2.130.0000.01518.96
7.2.120.0040.01019.08
7.2.110.0060.01118.97
7.2.100.0050.00819.01
7.2.90.0020.01319.14
7.2.80.0090.00819.19
7.2.70.0090.00719.19
7.2.60.0110.01219.19
7.2.50.0070.01019.01
7.2.40.0070.00719.14
7.2.30.0050.01319.25
7.2.20.0050.00919.06
7.2.10.0040.00719.10
7.2.00.0050.01219.19
7.1.330.0030.01318.17
7.1.320.0070.00718.21
7.1.310.0100.00618.48
7.1.300.0100.00317.94
7.1.290.0030.00718.34
7.1.280.0030.01317.99
7.1.270.0030.00918.09
7.1.260.0040.01118.10
7.1.250.0070.00718.18
7.1.240.0070.00718.34
7.1.230.0030.00718.14
7.1.220.0050.01018.20
7.1.210.0040.00918.11
7.1.200.0020.00718.21
7.1.190.0080.00618.28
7.1.180.0050.00618.06
7.1.170.0050.00818.12
7.1.160.0070.00818.12
7.1.150.0050.00918.22
7.1.140.0080.00318.22
7.1.130.0030.00818.14
7.1.120.0040.00618.20
7.1.110.0050.00818.29
7.1.100.0750.00718.45
7.1.90.2710.00418.21
7.1.80.0260.00918.44
7.1.70.1440.00818.00
7.1.60.2500.01323.99
7.1.50.2340.01123.96
7.1.40.1550.00822.92
7.1.30.2090.00722.87
7.1.20.2270.00923.91
7.1.10.2130.01017.91
7.1.00.2040.01017.71
7.0.330.0070.00917.90
7.0.320.0070.00417.89
7.0.310.0070.00418.04
7.0.300.0030.01017.74
7.0.290.0010.00917.78
7.0.280.0080.00617.88
7.0.270.0100.00517.73
7.0.260.0070.00717.68
7.0.250.0040.00718.01
7.0.240.0040.01017.97
7.0.230.3460.00817.95
7.0.220.2120.01118.06
7.0.210.2470.00817.75
7.0.200.3220.00417.74
7.0.190.3020.00717.69
7.0.180.2250.01017.67
7.0.170.2880.00517.65
7.0.160.2710.01117.48
7.0.150.2060.01317.56
7.0.140.2160.00717.71
7.0.130.1850.00817.41
7.0.120.2080.00817.56
7.0.110.2060.00917.60
7.0.100.2050.01117.47
7.0.90.2030.00917.55
7.0.80.2070.00717.52
7.0.70.1600.00817.40
7.0.60.2000.00917.52
7.0.50.2160.01017.45
7.0.40.1510.00615.97
7.0.30.2020.00616.05
7.0.20.1470.00616.11
7.0.10.1480.00816.16
7.0.00.1890.01016.16
5.6.400.0100.00317.00
5.6.390.0090.00617.21
5.6.380.0040.00916.93
5.6.370.0070.00316.81
5.6.360.0060.00916.52
5.6.350.0140.00016.53
5.6.340.0030.01317.02
5.6.330.0090.00617.02
5.6.320.0060.00616.62
5.6.310.0070.01016.99
5.6.300.0110.00417.21
5.6.290.0030.01316.98
5.6.280.0060.01017.02
5.6.270.0030.00916.93
5.6.260.0060.00616.62
5.6.250.0110.00016.92
5.6.240.0030.00917.05
5.6.230.0030.01416.62
5.6.220.0030.00816.66
5.6.210.0070.00716.70
5.6.200.0060.00616.73
5.6.190.0090.00617.00
5.6.180.0030.01016.81
5.6.170.0000.01116.81
5.6.160.0030.00916.91
5.6.150.0070.00716.82
5.6.140.0090.00617.01
5.6.130.0030.01116.57
5.6.120.0060.00617.01
5.6.110.0030.00916.54
5.6.100.0000.01016.82
5.6.90.0000.01516.70
5.6.80.0000.01016.74
5.6.70.0040.00816.90
5.6.60.0070.00716.76
5.6.50.0070.00316.68
5.6.40.0060.00316.76
5.6.30.0100.00016.93
5.6.20.0000.01316.71
5.6.10.0040.00416.63
5.6.00.0040.00816.68

preferences:
59.33 ms | 400 KiB | 5 Q