3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Number of days in current month: ' . date('t') . "\n"; echo 'Number of days in February this year: ' . date('t', strtotime(date('Y') . '-02-01'));

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.0090.00819.49
8.5.20.0120.00720.25
8.5.10.0110.00716.64
8.5.00.0100.01319.97
8.4.180.0060.00419.81
8.4.170.0130.00923.92
8.4.160.0130.00923.86
8.4.150.0050.00716.91
8.4.140.0120.01017.96
8.4.130.0120.00817.65
8.4.120.0130.00824.21
8.4.110.0080.01020.61
8.4.100.0140.00618.68
8.4.90.0170.00422.24
8.4.80.0080.00518.87
8.4.70.0040.00418.07
8.4.60.0070.00518.60
8.4.50.0090.00922.36
8.4.40.0090.00618.76
8.4.30.0000.01520.55
8.4.20.0060.00321.17
8.4.10.0030.01719.36
8.3.300.0130.00819.07
8.3.290.0150.00518.62
8.3.280.0150.00518.42
8.3.270.0130.00616.40
8.3.260.0040.00516.79
8.3.250.0090.01018.81
8.3.240.0100.00817.43
8.3.230.0100.00916.76
8.3.220.0040.00418.72
8.3.210.0060.01018.64
8.3.200.0040.00516.94
8.3.190.0120.00717.15
8.3.180.0080.01018.81
8.3.170.0080.00817.23
8.3.160.0180.00020.66
8.3.150.0110.00717.36
8.3.140.0110.00716.83
8.3.130.0250.00716.50
8.3.120.0100.01016.44
8.3.110.0110.00816.35
8.3.100.0160.00516.70
8.3.90.0220.00016.44
8.3.80.0180.00516.60
8.3.70.0180.00516.35
8.3.60.0160.00516.45
8.3.50.0150.00616.20
8.3.40.0090.00917.44
8.3.30.0130.00517.31
8.3.20.0180.00017.43
8.3.10.0170.00217.28
8.3.00.0110.00017.34
8.2.300.0120.00820.33
8.2.290.0080.00920.55
8.2.280.0090.01118.42
8.2.270.0110.00716.49
8.2.260.0150.00417.13
8.2.250.0190.00016.55
8.2.240.0200.00016.27
8.2.230.0130.00616.43
8.2.220.0200.00016.47
8.2.210.0160.00416.18
8.2.200.0140.00516.23
8.2.190.0120.00616.83
8.2.180.0070.01116.38
8.2.170.0140.00717.68
8.2.160.0180.00017.55
8.2.150.0120.00617.75
8.2.140.0150.00417.61
8.2.130.0120.00617.52
8.2.120.0200.00017.64
8.2.110.0150.00417.63
8.2.100.0370.00317.54
8.2.90.0500.00017.52
8.2.80.0310.01017.57
8.2.70.0280.01117.66
8.2.60.0300.00717.52
8.2.50.0310.01417.38
8.2.40.0230.00817.65
8.2.30.0250.00517.62
8.2.20.0330.00317.63
8.2.10.0270.01017.75
8.2.00.0290.00717.40
8.1.340.0100.00917.84
8.1.330.0080.00321.65
8.1.320.0110.00618.00
8.1.310.0150.00416.81
8.1.300.0320.00716.18
8.1.290.0240.00916.18
8.1.280.0300.00516.18
8.1.270.0280.01217.32
8.1.260.0270.00717.45
8.1.250.0340.00717.52
8.1.240.0290.00417.11
8.1.230.0260.00417.56
8.1.220.0220.01517.16
8.1.210.0310.00417.29
8.1.200.0250.01417.30
8.1.190.0220.01017.05
8.1.180.0200.00917.23
8.1.170.0180.01217.45
8.1.160.0250.00317.40
8.1.150.0170.00717.17
8.1.140.0180.00917.24
8.1.130.0270.01317.43
8.1.120.0210.01117.45
8.1.110.0290.00717.30
8.1.100.0380.00717.50
8.1.90.0350.00617.21
8.1.80.0270.00817.36
8.1.70.0190.01317.50
8.1.60.0320.00717.50
8.1.50.0310.00717.45
8.1.40.0340.00417.12
8.1.30.0380.00017.33
8.1.20.0370.00717.35
8.1.10.0280.01117.39
8.1.00.0290.00317.17
7.4.40.0240.00317.07

preferences:
57.91 ms | 987 KiB | 5 Q