3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait FooTrait { public static function fooFunc() { return __CLASS__; } } class FooClass { use FooTrait; } echo("Calling FooClass::fooFunc():\n"); echo(FooClass::fooFunc()); echo("\n\n"); echo("Calling FooTrait::fooFunc():\n"); echo(FooTrait::fooFunc());

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.90.0100.00716.92
8.5.80.0110.00516.98
8.5.70.0110.00416.79
8.5.60.0040.00518.47
8.5.50.0100.00716.82
8.5.30.0070.00920.21
8.5.20.0110.00520.27
8.5.10.0140.00618.66
8.5.00.0110.00920.00
8.4.240.0140.00819.54
8.4.230.0130.00719.63
8.4.220.0070.00719.41
8.4.210.0120.01121.48
8.4.180.0110.01119.67
8.4.170.0130.01119.78
8.4.160.0100.01119.81
8.4.150.0090.00416.94
8.4.140.0150.00617.49
8.4.130.0130.00718.13
8.4.120.0150.00522.34
8.4.110.0110.00922.61
8.4.100.0120.00917.63
8.4.90.0110.00720.70
8.4.80.0130.00817.86
8.4.70.0110.01117.99
8.4.60.0140.00720.28
8.4.50.0080.01218.89
8.4.40.0120.00917.83
8.4.30.0120.00618.79
8.4.20.0130.00717.96
8.4.10.0060.00317.84
8.3.330.0110.00918.40
8.3.320.0110.00818.37
8.3.310.0050.00418.44
8.3.300.0080.00120.80
8.3.290.0100.01118.31
8.3.280.0110.00918.31
8.3.270.0120.00816.60
8.3.260.0080.01216.86
8.3.250.0080.01019.08
8.3.240.0130.00616.69
8.3.230.0070.00916.61
8.3.220.0060.00217.30
8.3.210.0090.01016.86
8.3.200.0040.00516.56
8.3.190.0130.00518.96
8.3.180.0140.00516.58
8.3.170.0070.01116.50
8.3.160.0180.00018.33
8.3.150.0160.00316.98
8.3.140.0040.00717.36
8.3.130.0160.00018.64
8.3.120.0030.00518.72
8.3.110.0080.01118.32
8.3.100.0070.00416.63
8.3.90.0100.00726.77
8.3.80.0040.00416.75
8.3.70.0090.00916.75
8.3.60.0110.00416.75
8.3.50.0170.00318.44
8.3.40.0030.01218.54
8.3.30.0110.00718.59
8.3.20.0000.00724.18
8.3.10.0080.00024.66
8.3.00.0030.00626.16
8.2.320.0090.01017.92
8.2.310.0100.00917.97
8.2.300.0140.00718.05
8.2.290.0070.00420.43
8.2.280.0050.00518.62
8.2.270.0030.01216.42
8.2.260.0060.00916.80
8.2.250.0080.00016.65
8.2.240.0120.00617.29
8.2.230.0060.00320.94
8.2.220.0040.00424.06
8.2.210.0070.00026.77
8.2.200.0030.00616.50
8.2.190.0070.01016.58
8.2.180.0180.00025.92
8.2.170.0090.00619.00
8.2.160.0030.01322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00019.67
8.2.110.0070.00320.48
8.2.100.0030.00620.57
8.1.340.0120.00817.48
8.1.330.0080.01018.19
8.1.320.0100.00915.97
8.1.310.0030.00716.77
8.1.300.0000.00816.27
8.1.290.0030.00630.84
8.1.280.0150.00325.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00018.69
8.1.230.0040.00718.87
8.1.20.0060.00517.53
8.0.10.0090.00616.85

preferences:
88.64 ms | 913 KiB | 5 Q