3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = 'mickmackusa'; $yob = fn(?int $age): ?int => !$age ? null : ( fn($birthYear) => $birthYear * print "$name's birth year is $birthYear\n" )(date('Y') - $age); var_export($yob(null)); echo "\n---\n"; var_export($yob(31));

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.30.0100.00818.19
8.5.20.0100.00720.05
8.5.10.0070.01116.82
8.5.00.0140.00820.16
8.4.180.0180.00419.76
8.4.170.0140.00723.82
8.4.160.0140.00623.88
8.4.150.0060.00616.93
8.4.140.0120.00917.62
8.4.130.0050.00519.55
8.4.120.0110.00920.83
8.4.110.0450.00817.83
8.4.100.0460.01017.84
8.4.90.0270.00617.91
8.4.80.0460.00517.76
8.4.70.0400.00817.74
8.4.60.0490.01017.29
8.4.50.0420.01018.04
8.4.40.0420.01117.67
8.4.30.0410.00517.76
8.4.20.0220.00617.43
8.4.10.0410.00917.24
8.3.300.0130.00918.55
8.3.290.0090.01020.88
8.3.280.0150.00818.66
8.3.270.0090.01016.51
8.3.260.0130.00516.68
8.3.250.0050.00317.19
8.3.240.0370.00716.52
8.3.230.0170.00416.55
8.3.220.0410.00716.79
8.3.210.0240.00316.78
8.3.200.0410.00816.24
8.3.190.0370.00916.60
8.3.180.0200.00316.71
8.3.170.0190.00516.64
8.3.160.0430.00816.82
8.3.150.0390.01116.59
8.3.140.0430.01216.32
8.3.130.0200.01116.50
8.3.120.0180.00316.60
8.3.110.0240.00616.48
8.3.100.0170.00816.62
8.3.90.0280.01516.20
8.3.80.0260.00316.43
8.3.70.0190.00616.13
8.3.60.0210.00516.48
8.3.50.0180.00616.49
8.3.40.0180.00717.66
8.3.30.0280.01017.78
8.3.20.0380.00717.54
8.3.10.0310.00917.93
8.3.00.0190.00817.41
8.2.300.0090.01122.25
8.2.290.0270.01216.57
8.2.280.0310.00616.80
8.2.270.0300.01216.57
8.2.260.0320.00816.47
8.2.250.0290.01116.50
8.2.240.0350.00316.52
8.2.230.0340.00916.22
8.2.220.0360.00716.55
8.2.210.0350.00716.42
8.2.200.0380.00616.30
8.2.190.0320.00616.59
8.2.180.0330.00716.38
8.2.170.0370.00917.85
8.2.160.0360.00717.79
8.2.150.0430.00617.48
8.2.140.0320.00817.59
8.2.130.0310.00317.77
8.2.120.0220.00517.50
8.2.110.0180.00317.77
8.2.100.0340.00917.67
8.2.90.0380.00917.69
8.2.80.0360.00817.68
8.2.70.0180.00917.70
8.2.60.0350.01117.39
8.2.50.0340.00617.54
8.2.40.0340.01317.13
8.2.30.0390.00617.45
8.2.20.0320.01317.36
8.2.10.0310.00517.60
8.2.00.0120.00717.68
8.1.340.0120.00917.69

preferences:
42.77 ms | 849 KiB | 5 Q