3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test ($x, $y) { if ($x % $y) { test($x, $y - 1); } } test(111, 110);

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.0040.01116.75
8.3.50.0100.01016.64
8.3.40.0000.01618.85
8.3.30.0040.01118.54
8.3.20.0050.00320.18
8.3.10.0070.00023.48
8.3.00.0040.00423.36
8.2.180.0160.00616.32
8.2.170.0170.00322.96
8.2.160.0070.00720.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.70
8.2.120.0040.00426.35
8.2.110.0100.00022.25
8.2.100.0090.00317.80
8.2.90.0000.00919.04
8.2.80.0000.00917.97
8.2.70.0120.00417.37
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00420.46
8.2.30.0000.00720.62
8.2.20.0070.00017.62
8.2.10.0040.00417.91
8.2.00.0040.00418.06
8.1.280.0150.00325.92
8.1.270.0030.00523.66
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0060.00322.33
8.1.230.0120.00018.86
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.22
8.1.190.0040.00417.22
8.1.180.0000.00718.10
8.1.170.0000.00818.65
8.1.160.0030.00420.52
8.1.150.0000.00718.69
8.1.140.0000.01119.46
8.1.130.0040.00417.50
8.1.120.0000.00717.36
8.1.110.0070.00017.27
8.1.100.0040.00417.26
8.1.90.0080.00017.27
8.1.80.0030.00617.34
8.1.70.0030.00617.21
8.1.60.0000.00717.55
8.1.50.0000.00917.29
8.1.40.0040.00417.47
8.1.30.0030.00517.61
8.1.20.0060.00317.43
8.1.10.0030.00517.45
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0000.00717.20
8.0.260.0000.00617.21
8.0.250.0000.00716.94
8.0.240.0030.00516.79
8.0.230.0000.00716.80
8.0.220.0070.00016.70
8.0.210.0040.00416.84
8.0.200.0060.00016.93
8.0.190.0040.00416.79
8.0.180.0040.00416.77
8.0.170.0050.00316.80
8.0.160.0050.00216.80
8.0.150.0000.00716.73
8.0.140.0000.01416.78
8.0.130.0050.00013.25
8.0.120.0000.00816.83
8.0.110.0040.00416.83
8.0.100.0000.00916.71
8.0.90.0080.00016.68
8.0.80.0070.01416.80
8.0.70.0070.00016.79
8.0.60.0040.00416.73
8.0.50.0050.00316.82
8.0.30.0050.01516.97
8.0.20.0090.01117.40
8.0.10.0040.00417.03
8.0.00.0120.00716.65
7.4.330.0000.00516.67
7.4.320.0000.00616.39
7.4.300.0000.00616.55
7.4.290.0060.00316.59
7.4.280.0030.00616.52
7.4.270.0030.00316.56
7.4.260.0070.00016.57
7.4.250.0040.00416.28
7.4.240.0030.00416.55
7.4.230.0000.00716.63
7.4.220.0160.00616.59
7.4.210.0100.00516.42
7.4.200.0040.00416.49
7.4.160.0060.00916.38
7.4.150.0070.01117.40
7.4.140.0080.01017.86
7.4.130.0120.00716.52
7.4.120.0110.00616.48
7.4.110.0100.00716.58
7.4.100.0100.00716.37
7.4.90.0130.01016.64
7.4.80.0110.00719.39
7.4.70.0090.00616.45
7.4.60.0130.00316.35
7.4.50.0030.01316.64
7.4.40.0060.00916.49
7.4.30.0070.01016.55
7.4.00.0120.00614.96
7.3.330.0050.00013.30
7.3.320.0000.00513.31
7.3.310.0000.00716.42
7.3.300.0030.00316.32
7.3.290.0000.00716.20
7.3.280.0090.00616.31
7.3.270.0000.01817.40
7.3.260.0070.01116.58
7.3.250.0070.01116.24
7.3.240.0080.00816.34
7.3.230.0130.01316.53
7.3.210.0160.00016.48
7.3.200.0070.01019.39
7.3.190.0060.01216.57
7.3.180.0160.00316.46
7.3.170.0000.01616.35
7.3.160.0100.00716.35
7.2.330.0190.00016.52
7.2.320.0030.01416.54
7.2.310.0070.01016.58
7.2.300.0110.01116.48
7.2.290.0100.00716.27
7.2.00.0060.00919.23
7.1.100.0000.01418.30
7.1.70.0110.00016.71
7.1.60.0110.01419.20
7.1.50.0100.01316.52
7.1.00.0030.07722.57
7.0.200.0210.00014.99
7.0.60.0000.08721.82
7.0.50.0030.05717.96
7.0.40.0070.04020.40
7.0.30.0300.04320.21
7.0.20.0270.08020.12
7.0.10.0130.07020.26
7.0.00.0130.08020.05
5.6.280.0030.05721.12
5.6.210.0130.07720.73
5.6.200.0130.06018.29
5.6.190.0000.05320.64
5.6.180.0500.07020.57
5.6.170.0370.05020.71
5.6.160.0100.08020.61
5.6.150.0030.07318.25
5.6.140.0070.05318.19
5.6.130.0170.04718.19
5.6.120.0030.04721.10
5.6.110.0130.08320.99
5.6.100.0070.03721.03
5.6.90.0100.03320.86
5.6.80.0030.04020.44
5.5.350.0330.05320.39
5.5.340.0070.05717.96
5.5.330.0000.04720.42
5.5.320.0430.03320.33
5.5.310.0330.07020.42
5.5.300.0030.07318.07
5.5.290.0070.08017.97
5.5.280.0170.06720.65
5.5.270.0070.06320.79
5.5.260.0000.08020.79
5.5.250.0230.06320.70
5.5.240.0200.07320.34

preferences:
53.8 ms | 400 KiB | 5 Q