3v4l.org

run code in 300+ PHP versions simultaneously
<?php $period = new DatePeriod( new DateTime('today 06:00:00'), new DateInterval('PT30M'), new DateTime('today 22:00:00'), DatePeriod::INCLUDE_END_DATE ); foreach ($period as $dt) { printf( '<option>%1$s - %3$s %2$s</option>' . "\n", $dt->format('h:i'), $dt->format('a'), $dt->modify('+30 minutes')->format('h:i') ); }

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.10.0130.01016.89
8.5.00.0150.00620.09
8.4.150.0030.00014.05
8.4.140.0140.00717.83
8.4.130.0160.00418.21
8.4.120.0080.01220.42
8.4.110.0060.00522.55
8.4.100.0050.00418.11
8.4.90.0120.00819.76
8.4.80.0120.01218.08
8.4.70.0130.00818.20
8.4.60.0120.00718.14
8.4.50.0100.00217.82
8.4.40.0070.00717.77
8.4.30.0130.00619.06
8.4.20.0110.01117.69
8.4.10.0030.00619.70
8.3.280.0090.01218.72
8.3.270.0120.00816.72
8.3.260.0090.01016.73
8.3.250.0110.00719.00
8.3.240.0060.00616.77
8.3.230.0100.01016.62
8.3.220.0110.00817.24
8.3.210.0100.01016.96
8.3.200.0110.00416.67
8.3.190.0070.00816.79
8.3.180.0080.00818.56
8.3.170.0090.00920.79
8.3.160.0000.01817.11
8.3.150.0160.00319.21
8.3.140.0060.01218.76
8.3.130.0080.00018.54
8.3.120.0160.00320.73
8.3.110.0000.00920.94
8.3.100.0140.00724.06
8.3.90.0040.00426.77
8.3.80.0040.00418.55
8.3.70.0060.01318.43
8.3.60.0000.01518.43
8.3.50.0120.00316.74
8.3.40.0000.01421.82
8.3.30.0070.00720.17
8.3.20.0100.01025.66
8.3.10.0110.00725.66
8.3.00.0100.01025.66
8.2.290.0140.00720.64
8.2.280.0130.01118.30
8.2.270.0130.00717.29
8.2.260.0040.00416.80
8.2.250.0130.00716.59
8.2.240.0040.00418.88
8.2.230.0080.00322.58
8.2.220.0030.00637.54
8.2.210.0090.00926.77
8.2.200.0000.01018.54
8.2.190.0180.00418.63
8.2.180.0120.00618.27
8.2.170.0120.00319.02
8.2.160.0090.00522.96
8.2.150.0030.01625.66
8.2.140.0160.00325.66
8.2.130.0150.00425.66
8.2.120.0100.01325.66
8.2.110.0090.01225.66
8.2.100.0120.00925.66
8.2.90.0070.01525.66
8.2.80.0170.00325.66
8.2.70.0110.01125.66
8.2.60.0110.01125.66
8.2.50.0070.01525.66
8.2.40.0100.01025.66
8.2.30.0100.01025.66
8.2.20.0060.01325.66
8.2.10.0100.00725.66
8.2.00.0130.01025.66
8.1.330.0140.00516.75
8.1.320.0130.00616.13
8.1.310.0060.01218.61
8.1.300.0090.00018.23
8.1.290.0060.00330.84
8.1.280.0090.00925.92
8.1.270.0090.01225.66
8.1.260.0060.01225.66
8.1.250.0110.00725.66
8.1.240.0060.01225.66
8.1.230.0130.00625.66
8.1.220.0070.01025.66
8.1.210.0120.00625.66
8.1.200.0160.00625.66
8.1.190.0100.01025.66
8.1.180.0140.00725.66
8.1.170.0150.00625.66
8.1.160.0130.01025.66
8.1.150.0160.00625.66
8.1.140.0170.00325.66
8.1.130.0100.01025.66
8.1.120.0130.00625.66
8.1.110.0070.01025.66
8.1.100.0160.00025.66
8.1.90.0140.00725.66
8.1.80.0080.00825.66
8.1.70.0090.00925.66
8.1.60.0100.00725.66
8.1.50.0110.00425.66
8.1.40.0120.00325.66
8.1.30.0040.01125.66
8.1.20.0110.00425.66
8.1.10.0030.01325.66
8.1.00.0000.01525.66

preferences:
32.14 ms | 403 KiB | 5 Q