3v4l.org

run code in 300+ PHP versions simultaneously
<?php function example(int|string $arg) : int|string { return $arg; } var_dump(example("foo")); var_dump(example(42));

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.40.0070.00719.08
8.3.30.0090.00918.96
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.170.0090.00918.66
8.2.160.0110.00422.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00019.54
8.2.110.0060.00321.06
8.2.100.0030.01117.47
8.2.90.0040.00417.50
8.2.80.0000.00818.79
8.2.70.0040.00417.38
8.2.60.0040.00417.50
8.2.50.0050.00317.98
8.2.40.0080.00018.09
8.2.30.0090.00017.93
8.2.20.0000.01020.43
8.2.10.0070.00017.53
8.2.00.0040.00419.03
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00622.19
8.1.230.0030.00920.79
8.1.220.0050.00318.39
8.1.210.0030.00919.00
8.1.200.0040.00417.22
8.1.190.0040.00417.22
8.1.180.0080.00018.10
8.1.170.0030.00517.62
8.1.160.0020.00518.82
8.1.150.0120.00318.42
8.1.140.0000.00717.30
8.1.130.0040.00418.73
8.1.120.0040.00417.34
8.1.110.0000.00717.37
8.1.100.0050.00317.36
8.1.90.0040.00417.35
8.1.80.0040.00417.25
8.1.70.0030.00317.36
8.1.60.0000.00817.35
8.1.50.0040.00417.45
8.1.40.0030.00617.44
8.1.30.0030.00617.53
8.1.20.0190.00617.55
8.1.10.0210.00317.41
8.1.00.0150.00917.36
8.0.300.0040.00419.91
8.0.290.0080.00316.63
8.0.280.0030.00318.30
8.0.270.0030.00516.66
8.0.260.0030.00318.29
8.0.250.0030.00616.88
8.0.240.0060.00316.81
8.0.230.0000.00716.91
8.0.220.0000.00716.71
8.0.210.0080.00016.86
8.0.200.0030.00316.85
8.0.190.0000.00816.79
8.0.180.0000.00716.90
8.0.170.0060.00316.75
8.0.160.0130.00616.79
8.0.150.0150.00516.61
8.0.140.0160.00316.82
8.0.130.0150.00416.75
8.0.120.0160.00416.77
8.0.110.0150.00316.73
8.0.100.0110.00816.63
8.0.90.0160.00416.71
8.0.80.0180.00316.79
8.0.70.0160.00416.80
8.0.60.0130.00816.75
8.0.50.0140.00616.73
8.0.30.0190.00016.76
8.0.20.0160.00416.72
8.0.10.0120.00616.77
7.4.330.0020.00315.55
7.4.320.0000.00616.34
7.4.300.0030.00316.36
7.4.290.0000.00716.29
7.4.280.0070.00016.45
7.4.270.0190.00316.30
7.4.260.0110.00316.26
7.4.250.0000.00816.40
7.4.240.0050.00316.41
7.4.230.0180.00016.44
7.4.220.0110.00416.38
7.4.210.0140.00616.32
7.4.200.0000.01616.34
7.4.190.0090.00916.49
7.4.180.0130.00616.50
7.4.160.0140.00416.40
7.4.150.0100.00516.34
7.4.140.0120.00416.16
7.4.130.0180.00016.24
7.4.120.0200.00016.24
7.4.110.0190.00016.21
7.4.100.0060.00516.37
7.4.90.0140.00416.20
7.4.80.0120.00616.09
7.4.70.0140.00516.23
7.4.60.0170.00216.23
7.4.50.0150.00316.14
7.4.40.0170.00016.04
7.4.30.0060.01216.10
7.4.20.0140.00316.00
7.4.10.0120.00516.14
7.4.00.0110.00616.22

preferences:
53.3 ms | 400 KiB | 5 Q