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.3.60.0030.01316.50
8.3.50.0100.00316.56
8.3.40.0070.00718.98
8.3.30.0040.01118.89
8.3.20.0030.00624.18
8.3.10.0050.00224.66
8.3.00.0000.00826.16
8.2.180.0040.01125.92
8.2.170.0070.01418.82
8.2.160.0130.00022.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0050.00326.35
8.2.110.0000.01122.20
8.2.100.0040.00817.91
8.2.90.0040.00417.75
8.2.80.0000.00818.69
8.2.70.0000.00917.93
8.2.60.0080.00018.22
8.2.50.0000.00818.10
8.2.40.0040.00421.03
8.2.30.0050.00219.26
8.2.20.0040.00418.04
8.2.10.0080.00019.17
8.2.00.0000.00719.19
8.1.280.0140.00425.92
8.1.270.0050.00223.99
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.22
8.1.230.0110.00017.59
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0080.00018.49
8.1.160.0080.00018.80
8.1.150.0040.00418.88
8.1.140.0000.00718.86
8.1.130.0050.00320.13
8.1.120.0030.00517.45
8.1.110.0000.00717.45
8.1.100.0030.00517.38
8.1.90.0000.00717.44
8.1.80.0040.00317.47
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.300.0040.00418.77
8.0.290.0050.00216.63
8.0.280.0080.00018.43
8.0.270.0000.00716.83
8.0.260.0030.00318.34
8.0.250.0000.00716.97
8.0.240.0030.00616.98
8.0.230.0030.00316.82
8.0.220.0050.00216.83
8.0.210.0070.00016.83
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.330.0000.00515.55
7.4.320.0060.00016.58
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:
52.94 ms | 401 KiB | 5 Q