3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name\Space; class foo { public function bar() { return self::class; } } $ob = new foo(); echo $ob::class; echo $ob->bar();

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.70.0160.00016.58
8.3.60.0040.01118.15
8.3.50.0120.00621.92
8.3.40.0070.00718.65
8.3.30.0090.00518.59
8.3.20.0050.00318.57
8.3.10.0040.00420.92
8.3.00.0070.00021.70
8.2.180.0040.01116.50
8.2.170.0140.00722.96
8.2.160.0170.00320.38
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00721.04
8.2.110.0060.00322.01
8.2.100.0060.00318.69
8.1.280.0100.01325.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0060.00328.09
8.1.240.0070.00318.49
8.1.230.0060.00318.51
5.4.160.0130.03912.39
5.4.150.0120.04212.38
5.4.140.0250.06912.07
5.4.130.0130.04212.05
5.4.120.0120.04212.02
5.4.110.0120.04012.01
5.4.100.0180.06712.01
5.4.90.0100.04212.01
5.4.80.0120.04212.01
5.4.70.0140.03812.01
5.4.60.0140.04112.01
5.4.50.0110.04212.01
5.4.40.0120.03912.00
5.4.30.0100.04411.99
5.4.20.0100.04111.99
5.4.10.0130.04811.99
5.4.00.0130.03911.48
5.3.260.0110.04312.72
5.3.250.0140.04112.72
5.3.240.0140.04312.72
5.3.230.0110.04412.71
5.3.220.0130.04112.68
5.3.210.0190.05812.68
5.3.200.0110.04312.68
5.3.190.0210.06712.67
5.3.180.0130.04212.67
5.3.170.0120.04312.67
5.3.160.0110.04412.67
5.3.150.0190.06612.67
5.3.140.0160.04012.66
5.3.130.0120.04412.66
5.3.120.0250.06312.66
5.3.110.0130.04412.66
5.3.100.0130.04212.12
5.3.90.0130.04012.09
5.3.80.0150.04012.08
5.3.70.0140.05112.08
5.3.60.0160.03812.07
5.3.50.0110.04112.01
5.3.40.0120.04212.01
5.3.30.0120.04011.98
5.3.20.0130.04911.76
5.3.10.0130.03711.72
5.3.00.0130.04011.70

preferences:
42.99 ms | 401 KiB | 5 Q