3v4l.org

run code in 300+ PHP versions simultaneously
<?php function dumpResult(callable $fn, ...$args): void { var_dump($fn(...$args)); } dumpResult(fn($foo) => "Input: $foo", "Test");

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.130.0160.00318.23
8.3.120.0090.00920.97
8.3.110.0060.00316.36
8.3.100.0060.00318.45
8.3.90.0050.00326.77
8.3.80.0030.00616.75
8.3.70.0070.00716.75
8.3.60.0120.00316.63
8.3.50.0180.00317.89
8.3.40.0140.00020.03
8.3.30.0130.00718.54
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.250.0050.00318.98
8.2.240.0000.00916.46
8.2.230.0060.00320.94
8.2.220.0000.00924.06
8.2.210.0070.00026.77
8.2.200.0060.00318.41
8.2.190.0120.00618.41
8.2.180.0150.00625.92
8.2.170.0090.00618.83
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00426.16
8.2.110.0040.00422.21
8.2.100.0070.00717.78
8.2.90.0080.00018.14
8.2.80.0040.00418.53
8.2.70.0040.00417.38
8.2.60.0000.00817.91
8.2.50.0080.00018.07
8.2.40.0060.00318.03
8.2.30.0000.00717.95
8.2.20.0030.00320.50
8.2.10.0020.00517.93
8.2.00.0040.00419.35
8.1.300.0060.00317.87
8.1.290.0070.00330.84
8.1.280.0030.01025.92
8.1.270.0080.00024.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0100.00321.87
8.1.230.0110.00021.02
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0030.00618.64
8.1.160.0030.00318.74
8.1.150.0000.00818.63
8.1.140.0000.00717.38
8.1.130.0000.00717.38
8.1.120.0050.00518.65
8.1.110.0000.01618.61
8.1.100.0090.00618.58
8.1.90.0110.00318.68
8.1.80.0130.00218.63
8.1.70.0100.00518.56
8.1.60.0170.00018.81
8.1.50.0050.01018.73
8.1.40.0100.00318.75
8.1.30.0080.00818.77
8.1.20.0070.00718.78
8.1.10.0140.00318.71
8.1.00.0130.00418.65
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0000.00718.45
8.0.270.0030.00317.30
8.0.260.0000.00616.87
8.0.250.0100.00318.11
8.0.240.0110.00418.02
8.0.230.0110.00418.16
8.0.220.0040.01117.91
8.0.210.0130.00318.12
8.0.200.0080.00518.17
8.0.190.0090.00618.04
8.0.180.0120.00318.14
8.0.170.0110.00318.03
8.0.160.0050.01018.06
8.0.150.0120.00217.95
8.0.140.0150.00017.98
8.0.130.0070.00718.05
8.0.120.0120.00318.06
8.0.110.0110.00317.97
8.0.100.0110.00417.91
8.0.90.0100.00518.02
8.0.80.0060.00918.02
8.0.70.0070.00718.03
8.0.60.0100.00518.05
8.0.50.0070.00718.16
8.0.30.0100.00518.02
8.0.20.0110.00418.07
8.0.10.0130.00218.09
7.4.330.0100.00214.29
7.4.320.0130.00517.64
7.4.300.0130.00317.52
7.4.290.0050.00517.65
7.4.280.0100.00517.61
7.4.270.0030.01317.55
7.4.260.0060.00617.72
7.4.250.0110.00417.70
7.4.240.0110.00317.70
7.4.230.0080.00817.64
7.4.220.0110.00417.64
7.4.210.0070.00717.52
7.4.200.0160.00017.66
7.4.190.0130.00317.78
7.4.180.0070.00717.61
7.4.160.0100.00617.61
7.4.150.0150.00017.55
7.4.140.0090.00617.63
7.4.130.0050.01017.49
7.4.120.0100.00517.50
7.4.110.0150.00017.61
7.4.100.0070.00717.56
7.4.90.0090.00617.69
7.4.80.0090.00617.44
7.4.70.0000.00717.58
7.4.60.0060.00617.53
7.4.50.0060.00317.43
7.4.40.0040.00417.46
7.4.30.0070.00217.48
7.4.20.0090.00019.31
7.4.10.0070.00217.40
7.4.00.0070.00217.61

preferences:
46.13 ms | 403 KiB | 5 Q