3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Random { if (!\class_exists(\Random\Randomizer::class)) { final class Randomizer { public function nextInt(): int { return 1; } } } } namespace { $randomizer = new \Random\Randomizer; \var_dump($randomizer->nextInt()); }

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.60.0090.00618.18
8.3.50.0120.00319.83
8.3.40.0110.00320.26
8.3.30.0110.00318.57
8.3.20.0070.00724.18
8.3.10.0080.00024.66
8.3.00.0000.00726.16
8.2.180.0040.01125.92
8.2.170.0070.00718.89
8.2.160.0130.00322.96
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00020.92
8.2.110.0000.01020.90
8.2.100.0040.00817.78
8.2.90.0040.00420.59
8.2.80.0090.00017.97
8.2.70.0030.00617.63
8.2.60.0030.00617.80
8.2.50.0000.00817.63
8.2.40.0050.00318.15
8.2.30.0060.00318.04
8.2.20.0080.00019.15
8.2.10.0040.00417.96
8.2.00.0080.00019.30
8.1.280.0130.00325.92
8.1.270.0080.00024.66
8.1.260.0070.00726.35
8.1.250.0040.00428.09
8.1.240.0110.00023.79
8.1.230.0060.00622.75
8.1.220.0040.00417.74
8.1.210.0000.00918.95
8.1.200.0030.00717.23
8.1.190.0050.00317.23
8.1.180.0080.00018.10
8.1.170.0070.00318.70
8.1.160.0070.00018.93
8.1.150.0040.00418.55
8.1.140.0070.00017.45
8.1.130.0050.00319.22
8.1.120.0030.00717.36
8.1.110.0150.00417.32
8.1.100.0120.00617.42
8.1.90.0170.00017.31
8.1.80.0100.00517.44
8.1.70.0100.00717.43
8.1.60.0000.01917.53
8.1.50.0120.00917.49
8.1.40.0180.00317.48
8.1.30.0150.00317.62
8.1.20.0150.00517.43
8.1.10.0140.00617.50
8.1.00.0170.00317.41
8.0.300.0060.00320.02
8.0.290.0050.00316.75
8.0.280.0040.00418.35
8.0.270.0030.00517.94
8.0.260.0030.00316.77
8.0.250.0130.00316.80
8.0.240.0100.00516.93
8.0.230.0150.00016.73
8.0.220.0130.00316.80
8.0.210.0140.00016.90
8.0.200.0120.00616.98
8.0.190.0130.00316.91
8.0.180.0140.00416.75
8.0.170.0110.00416.88
8.0.160.0130.00316.78
8.0.150.0000.01616.67
8.0.140.0120.00416.85
8.0.130.0000.01716.65
8.0.120.0120.00416.86
8.0.110.0170.00016.78
8.0.100.0120.00216.77
8.0.90.0060.00916.75
8.0.80.0150.00016.75
8.0.70.0130.00316.72
8.0.60.0130.00316.73
8.0.50.0100.00516.71
8.0.30.0110.00416.83
8.0.20.0070.00716.81
8.0.10.0120.00216.99
7.4.330.0040.00015.55
7.4.320.0140.00516.55
7.4.300.0110.00516.46
7.4.290.0090.00916.53
7.4.280.0140.00316.49
7.4.270.0070.01116.62
7.4.260.0140.00316.37
7.4.250.0150.00416.31
7.4.240.0160.00016.47
7.4.230.0100.00616.55
7.4.220.0100.00516.49
7.4.210.0100.00516.55
7.4.200.0150.00016.48
7.4.190.0050.01016.61
7.4.180.0160.00016.43
7.4.160.0110.00316.53
7.4.150.0000.01416.39
7.4.140.0080.00716.42
7.4.130.0040.01116.41
7.4.120.0120.00316.41
7.4.110.0150.00016.28
7.4.100.0120.00316.39
7.4.90.0130.00316.39
7.4.80.0100.00516.38
7.4.70.0110.00416.36
7.4.60.0130.00316.31
7.4.50.0110.00016.44
7.4.40.0060.00316.43
7.4.30.0000.00716.26
7.4.20.0060.00016.42
7.4.10.0060.00016.57
7.4.00.0030.00316.51

preferences:
44.83 ms | 400 KiB | 5 Q