3v4l.org

run code in 300+ PHP versions simultaneously
<?php enum Method: string { case Get = 'GET'; case Post = 'POST'; case Put = 'PUT'; const Post2 = self::Post; } function test(Method $method) { var_dump($method); }; test(Method::Post2);

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.00.0090.01219.94
8.4.150.0010.00114.05
8.4.140.0200.00617.20
8.4.130.0040.00517.88
8.4.120.0100.00920.51
8.4.110.0160.00318.62
8.4.100.0130.00818.78
8.4.90.0090.01118.77
8.4.80.0140.00618.76
8.4.70.0120.00717.95
8.4.60.0120.00818.71
8.4.50.0120.00718.72
8.4.40.0100.01019.47
8.4.30.0130.00720.18
8.4.20.0110.00818.88
8.4.10.0060.00319.47
8.3.280.0100.00918.39
8.3.270.0110.00816.35
8.3.260.0090.01016.31
8.3.250.0130.00718.82
8.3.240.0130.00616.52
8.3.230.0100.00816.93
8.3.220.0080.01018.88
8.3.210.0050.00316.70
8.3.200.0050.00416.61
8.3.190.0150.00316.92
8.3.180.0110.00917.41
8.3.170.0070.01120.62
8.3.160.0110.00716.56
8.3.150.0000.02016.80
8.3.140.0070.00316.50
8.3.130.0060.00318.46
8.3.120.0090.00018.88
8.3.110.0000.00816.54
8.3.100.0030.00616.58
8.3.50.0040.00416.50
8.2.290.0070.01120.46
8.2.280.0090.01018.37
8.2.270.0070.01317.30
8.2.260.0040.01416.71
8.2.250.0080.00018.52
8.2.240.0050.00318.70
8.2.230.0090.00916.32
8.2.220.0040.01216.53
8.1.330.0100.00922.01
8.1.320.0120.00718.23
8.1.310.0060.00317.91
8.1.300.0060.00318.28
8.0.30.0090.00916.90
8.0.20.0150.00816.91
8.0.10.0170.00716.88
8.0.00.0100.01316.97
7.4.160.0100.00716.45
7.4.150.0150.00616.32
7.4.140.0090.01316.47
7.4.130.0070.00716.19
7.4.120.0130.00716.34
7.4.110.0090.00616.34
7.4.100.0100.01016.40
7.4.90.0030.01616.35
7.4.80.0060.01516.27
7.4.70.0060.01216.27
7.4.60.0150.00316.30
7.4.50.0150.00016.22
7.4.40.0130.00616.24
7.4.30.0100.00716.10
7.4.20.0060.01216.23
7.4.10.0000.01516.34
7.4.00.0070.01116.40
7.3.280.0100.00716.15
7.3.270.0030.01216.20
7.3.260.0090.00916.12
7.3.250.0100.00716.11
7.3.240.0080.01216.25
7.3.230.0100.00516.12
7.3.220.0110.00416.04
7.3.210.0070.01316.12
7.3.200.0090.00916.07
7.3.190.0040.01416.09
7.3.180.0030.01016.08
7.3.170.0110.00716.09
7.3.160.0100.01015.98
7.3.150.0060.01216.08
7.3.140.0060.01216.13
7.3.130.0120.00616.13
7.3.120.0030.01215.95
7.3.110.0040.01016.05
7.3.100.0070.01016.09
7.3.90.0040.01516.38
7.3.80.0060.01316.05
7.3.70.0030.01216.12
7.3.60.0070.00716.15
7.3.50.0000.01416.20
7.3.40.0080.00816.23
7.3.30.0040.01216.27
7.3.20.0080.00816.21
7.3.10.0100.01016.10
7.3.00.0140.00716.20

preferences:
82.02 ms | 403 KiB | 5 Q