3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filenames = ["10", "1", "100", "1000", "20", "200", "2"]; rsort($filenames, SORT_NATURAL); var_export($filenames);

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.4.130.0150.00517.64
8.4.120.0130.00624.13
8.4.110.0160.00422.27
8.4.100.0100.01017.52
8.4.90.0110.00920.70
8.4.80.0110.00819.24
8.4.70.0100.00617.94
8.4.60.0060.00218.61
8.4.50.0080.00318.79
8.4.40.0100.01019.28
8.4.30.0090.01220.33
8.4.20.0170.00319.82
8.4.10.0070.01019.48
8.3.260.0150.00516.66
8.3.250.0110.00718.93
8.3.240.0080.01017.36
8.3.230.0040.00416.77
8.3.220.0070.01020.65
8.3.210.0060.00318.24
8.3.200.0040.00516.59
8.3.190.0120.00818.88
8.3.180.0040.00416.47
8.3.170.0150.00316.45
8.3.160.0100.01018.06
8.3.150.0150.00316.54
8.3.140.0160.00316.61
8.3.130.0040.00418.30
8.3.120.0070.00318.60
8.3.110.0110.00420.94
8.3.100.0070.01416.35
8.3.90.0140.00026.77
8.3.80.0060.00316.50
8.3.70.0070.00716.58
8.3.60.0140.00716.63
8.3.50.0100.00623.55
8.3.40.0090.00919.10
8.3.30.0040.01118.73
8.3.20.0080.00024.18
8.3.10.0000.00724.66
8.3.00.0070.00026.16
8.2.290.0090.00216.88
8.2.280.0090.00820.25
8.2.270.0130.00317.38
8.2.260.0080.00018.41
8.2.250.0080.00016.57
8.2.240.0040.00416.94
8.2.230.0040.00422.58
8.2.220.0000.00924.06
8.2.210.0050.00326.77
8.2.200.0060.00316.63
8.2.190.0150.00616.58
8.2.180.0130.00725.92
8.2.170.0090.00618.90
8.2.160.0070.00722.96
8.2.150.0060.00325.66
8.2.140.0070.00024.66
8.2.130.0030.00626.16
8.2.120.0070.00026.35
8.2.110.0100.00021.05
8.2.100.0090.00317.84
8.2.90.0040.00417.63
8.2.80.0000.00818.54
8.2.70.0070.00317.25
8.2.60.0040.00417.93
8.2.50.0040.00718.07
8.2.40.0040.00418.22
8.2.30.0070.00017.92
8.2.20.0000.00718.02
8.2.10.0080.00019.11
8.2.00.0000.00719.16
8.1.330.0140.00516.58
8.1.320.0130.00616.30
8.1.310.0040.00418.37
8.1.300.0060.00318.50
8.1.290.0040.00430.84
8.1.280.0130.00725.92
8.1.270.0040.00422.27
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0040.00817.23
8.1.230.0060.00617.83
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0040.00417.22
8.1.180.0050.00318.10
8.1.170.0050.00318.43
8.1.160.0040.00418.74
8.1.150.0050.00218.88
8.1.140.0000.00718.84
8.1.130.0030.00319.95
8.1.120.0040.00417.32
8.1.110.0000.00817.39
8.1.100.0070.00017.39
8.1.90.0040.00417.38
8.1.80.0050.00317.28
8.1.70.0030.00317.35
8.1.60.0110.00017.45
8.1.50.0080.00017.48
8.1.40.0000.00817.37
8.1.30.0000.00717.41
8.1.20.0000.00817.42
8.1.10.0030.00517.51
8.1.00.0040.00417.36
8.0.300.0040.00420.83
8.0.290.0090.00016.63
8.0.280.0030.00418.37
8.0.270.0050.00317.86
8.0.260.0060.00018.38
8.0.250.0070.00016.87
8.0.240.0030.00616.92
8.0.230.0030.00316.85
8.0.220.0040.00416.83
8.0.210.0000.00716.79
8.0.200.0030.00316.93
8.0.190.0040.00416.75
8.0.180.0000.00816.78
8.0.170.0060.00316.71
8.0.160.0070.00016.79
8.0.150.0050.00316.75
8.0.140.0040.00416.67
8.0.130.0060.00013.27
8.0.120.0040.00416.83
8.0.110.0000.00816.89
8.0.100.0040.00416.74
8.0.90.0040.00416.87
8.0.80.0080.00616.80
8.0.70.0000.00716.73
8.0.60.0040.00416.74
8.0.50.0040.00516.70
8.0.30.0100.00717.20
8.0.20.0090.01817.06
8.0.10.0040.00416.89
8.0.00.0100.01116.43
7.4.330.0050.00015.55
7.4.320.0040.00416.45
7.4.300.0000.00716.45
7.4.290.0050.00316.55
7.4.280.0000.00816.35
7.4.270.0060.00016.44
7.4.260.0050.00013.21
7.4.250.0070.00016.35
7.4.240.0040.00316.51
7.4.230.0040.00416.57
7.4.220.0030.00316.47
7.4.210.0060.01016.51
7.4.200.0070.00016.32
7.4.130.0080.00916.46
7.4.120.0100.00716.49
7.4.110.0130.00316.40
7.4.100.0160.00316.48
7.4.90.0130.00316.57
7.4.80.0120.00819.39
7.4.70.0080.00916.23
7.4.60.0130.00716.50
7.4.50.0090.00616.43
7.4.40.0120.00316.40
7.4.30.0160.00316.35
7.4.20.0150.00416.35
7.4.10.0080.00816.43
7.4.00.0100.00716.24
7.3.330.0000.00716.20
7.3.320.0000.00512.88
7.3.310.0040.00416.09
7.3.300.0030.00316.16
7.3.290.0070.01016.16
7.3.280.0140.00716.14
7.3.260.0090.00916.11
7.3.240.0100.00716.29
7.3.230.0150.00316.32
7.3.210.0090.00616.36
7.3.200.0080.01216.52
7.3.190.0160.00016.10
7.3.180.0080.00816.41
7.3.170.0080.00816.18
7.3.160.0030.01416.30
7.3.150.0070.01116.09
7.3.140.0060.00916.13
7.3.130.0030.01216.18
7.3.120.0060.00916.23
7.3.110.0030.01316.09
7.3.100.0040.01116.02
7.3.90.0030.01216.05
7.3.80.0070.01016.19
7.3.70.0090.00616.24
7.3.60.0110.00416.27
7.3.50.0110.00716.34
7.3.40.0070.00716.36
7.3.30.0060.01016.29
7.3.20.0030.01317.91
7.3.10.0080.00817.98
7.3.00.0070.01018.02
7.2.330.0140.00616.18
7.2.320.0030.01416.16
7.2.310.0060.01216.33
7.2.300.0040.01416.45
7.2.290.0060.01216.13
7.2.280.0070.01016.47
7.2.270.0130.00516.34
7.2.260.0060.00916.06
7.2.250.0030.01316.44
7.2.240.0120.00416.22
7.2.230.0090.00616.27
7.2.220.0040.01216.27
7.2.210.0070.01016.18
7.2.200.0100.00716.36
7.2.190.0080.00816.39
7.2.180.0090.01216.31
7.2.170.0100.01216.50
7.2.160.0080.00816.47
7.2.150.0110.00818.13
7.2.140.0070.01018.29
7.2.130.0100.00718.28
7.2.120.0100.00718.21
7.2.110.0030.01318.21
7.2.100.0030.01318.00
7.2.90.0110.00618.21
7.2.80.0160.00018.25
7.2.70.0110.00618.21
7.2.60.0110.01117.98
7.2.50.0090.01218.01
7.2.40.0100.01318.18
7.2.30.0140.00918.32
7.2.20.0070.01018.32
7.2.10.0070.01117.98
7.2.00.0100.00718.22

preferences:
130.49 ms | 403 KiB | 5 Q