3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo($x){ echo "foo is called" . PHP_EOL; } class Foo { function bar($x) { echo "bar is called" . PHP_EOL; } } foo(10, 20); (new Foo())->bar(20, 30);

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.5.70.0070.00918.65
8.5.60.0050.00316.64
8.5.50.0090.00816.61
8.5.30.0120.00519.61
8.5.20.0100.01020.26
8.5.10.0100.00716.64
8.5.00.0110.01019.99
8.4.220.0050.00419.50
8.4.210.0060.00419.73
8.4.180.0110.01021.92
8.4.170.0140.00722.11
8.4.160.0150.00824.86
8.4.150.0070.00616.87
8.4.140.0140.00717.54
8.4.130.0080.00617.64
8.4.120.0050.00420.52
8.4.110.0120.00822.42
8.4.100.0080.01117.70
8.4.90.0050.00318.50
8.4.80.0130.00620.81
8.4.70.0060.00217.78
8.4.60.0110.00918.51
8.4.50.0050.00417.48
8.4.40.0100.01018.59
8.4.30.0000.00818.71
8.4.20.0120.00419.77
8.4.10.0060.01319.33
8.3.310.0130.00620.10
8.3.300.0130.00920.82
8.3.290.0090.01218.31
8.3.280.0100.01018.22
8.3.270.0130.01216.27
8.3.260.0110.00916.35
8.3.250.0110.00819.00
8.3.240.0130.00616.27
8.3.230.0120.00716.51
8.3.220.0060.00717.22
8.3.210.0060.00116.48
8.3.200.0060.00316.47
8.3.190.0120.01017.07
8.3.180.0090.01016.99
8.3.170.0040.00418.73
8.3.160.0070.01017.18
8.3.150.0090.00916.92
8.3.140.0080.00816.55
8.3.130.0050.00516.84
8.3.120.0100.00719.00
8.3.110.0110.00720.94
8.3.100.0030.00624.06
8.3.90.0090.00026.77
8.3.80.0030.00618.31
8.3.70.0070.00716.50
8.3.60.0070.00716.70
8.3.50.0070.01118.41
8.3.40.0100.01319.68
8.3.30.0120.00918.82
8.3.20.0090.01321.87
8.3.10.0030.01721.73
8.3.00.0130.00918.68
8.2.310.0140.00617.96
8.2.300.0110.00918.70
8.2.290.0100.00920.41
8.2.280.0110.00718.29
8.2.270.0040.00417.06
8.2.260.0000.01516.77
8.2.250.0050.00516.75
8.2.240.0160.00316.68
8.2.230.0060.00922.58
8.2.220.0040.00437.54
8.2.210.0040.00426.77
8.2.200.0040.00416.38
8.2.190.0110.00318.04
8.2.180.0030.01416.38
8.2.170.0100.01318.78
8.2.160.0110.01120.10
8.2.150.0180.00318.96
8.2.140.0170.00320.51
8.2.130.0130.00720.51
8.2.120.0130.00719.25
8.2.110.0070.01019.20
8.2.100.0100.00719.10
8.2.90.0160.00718.66
8.2.80.0150.00919.21
8.2.70.0100.01018.59
8.2.60.0120.00918.87
8.2.50.0070.01419.20
8.2.40.0100.01018.66
8.2.30.0150.00418.75
8.2.20.0120.00618.65
8.2.10.0130.01018.45
8.2.00.0090.01318.54
8.1.340.0070.01221.71
8.1.330.0090.01020.09
8.1.320.0100.00916.24
8.1.310.0110.00716.63
8.1.300.0030.00517.67
8.1.290.0090.00018.88
8.1.280.0140.01125.92
8.1.270.0170.00322.02
8.1.260.0150.00621.85
8.1.250.0070.01422.24
8.1.240.0070.00718.37
8.1.230.0120.00318.41
8.1.220.0070.00718.88
8.1.210.0110.00418.44
8.1.200.0110.00418.63
8.1.190.0110.00418.56
8.1.180.0120.00318.25
8.1.170.0090.00618.60
8.1.160.0120.00318.18
8.1.150.0110.00418.74
8.1.140.0110.00418.54
8.1.130.0090.00618.57
8.1.120.0040.01218.55
8.1.110.0030.01418.38
8.1.100.0160.00319.74
8.1.90.0120.00418.25
8.1.80.0120.00319.77
8.1.70.0070.00718.75
8.1.60.0120.00318.54
8.1.50.0150.00018.63
8.1.40.0120.00318.68
8.1.30.0120.00318.91
8.1.20.0000.01519.93
8.1.10.0070.00718.62
8.1.00.0090.00618.62

preferences:
77.58 ms | 1012 KiB | 5 Q