3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { return 42; } } $x = 'Foo::bar'; echo ( true === is_callable($x) ? 'T' : 'F' ); echo ( 42 == call_user_func($x) ? 'T' : 'F' );

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.1.70.0000.00817.35
8.1.60.0040.00417.49
8.1.50.0080.00317.52
8.1.40.0040.00417.54
8.1.30.0050.00217.65
8.1.20.0080.00017.61
8.1.10.0070.00317.58
8.1.00.0040.00417.46
8.0.200.0000.00816.80
8.0.190.0070.00016.79
8.0.180.0030.00516.87
8.0.170.0060.00316.86
8.0.160.0040.00316.73
8.0.150.0000.00716.74
8.0.140.0000.00716.82
8.0.130.0000.00513.21
8.0.120.0040.00416.88
8.0.110.0030.00316.96
8.0.100.0040.00416.91
8.0.90.0040.00416.77
8.0.80.0090.00916.83
8.0.70.0080.00016.93
8.0.60.0000.00716.84
8.0.50.0000.00716.78
8.0.30.0060.00616.90
8.0.20.0090.00617.02
8.0.10.0120.00317.02
8.0.00.0070.00616.98
7.4.300.0030.00316.57
7.4.290.0000.00716.54
7.4.280.0080.00016.49
7.4.270.0030.00316.61
7.4.260.0030.00313.28
7.4.250.0000.00716.57
7.4.240.0000.00816.51
7.4.230.0040.00416.66
7.4.220.0040.00316.63
7.4.210.0090.00916.50
7.4.200.0000.00716.35
7.4.160.0100.00316.69
7.4.150.0110.00316.63
7.4.140.0100.00316.50
7.4.130.0040.01116.40
7.4.120.0100.00316.47
7.4.110.0050.00816.49
7.4.100.0110.00416.55
7.4.90.0130.00316.57
7.4.80.0110.00316.50
7.4.70.0060.00816.63
7.4.60.0100.00316.57
7.4.50.0140.00016.44
7.4.40.0110.00316.50
7.4.30.0000.01316.31
7.4.20.0030.01016.40
7.4.10.0100.00316.48
7.4.00.0000.01416.44
7.3.330.0000.00816.35
7.3.320.0000.00513.11
7.3.310.0030.00616.30
7.3.300.0070.00016.24
7.3.290.0070.00816.31
7.3.280.0120.00016.29
7.3.270.0000.01316.30
7.3.260.0060.00616.26
7.3.250.0100.00316.26
7.3.240.0060.00616.30
7.3.230.0030.01016.27
7.3.220.0070.00716.21
7.3.210.0070.00716.20
7.3.200.0080.00416.22
7.3.190.0040.01116.25
7.3.180.0000.01316.21
7.3.170.0030.01016.15
7.3.160.0060.00916.23
7.3.150.0000.01316.23
7.3.140.0040.00816.23
7.3.130.0130.00016.22
7.3.120.0030.01016.18
7.3.110.0100.00316.11
7.3.100.0070.00716.18
7.3.90.0100.00416.50
7.3.80.0110.00316.26
7.3.70.0120.00316.20
7.3.60.0080.00516.36
7.3.50.0070.00716.25
7.3.40.0000.01316.45
7.3.30.0110.00316.35
7.3.20.0000.01316.36
7.3.10.0080.00516.43
7.3.00.0070.00616.37

preferences:
48.77 ms | 406 KiB | 5 Q