3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C{ public $foo = 5; public function foo(){echo "foo is evidently a callable function!";} } $o=new C(); if(is_int($o->foo)){ echo "foo is an integer!\n"; } if(is_callable(["C", "foo"] )){ echo "foo IS callable!\n"; }else{ echo "foo IS NOT callable!\n"; } $o->foo();

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.0090.00916.63
8.3.50.0110.00418.07
8.3.40.0040.01118.71
8.3.30.0040.01118.67
8.3.20.0050.00321.95
8.3.10.0000.00821.71
8.3.00.0080.00017.38
8.2.180.0130.00725.92
8.2.170.0040.01118.95
8.2.160.0070.00722.96
8.2.150.0110.00725.66
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00020.75
8.2.110.0000.00920.35
8.2.100.0080.00317.79
8.2.90.0000.00818.16
8.2.80.0080.00019.17
8.2.70.0050.00317.93
8.2.60.0080.00018.03
8.2.50.0040.00418.10
8.2.40.0040.00419.52
8.2.30.0070.00019.18
8.2.20.0080.00417.95
8.2.10.0040.00419.27
8.2.00.0000.00818.00
8.1.280.0140.00425.92
8.1.270.0040.00424.66
8.1.260.0060.01326.35
8.1.250.0050.00228.09
8.1.240.0090.00022.11
8.1.230.0040.00721.03
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00717.23
8.1.190.0040.00417.23
8.1.180.0060.00318.10
8.1.170.0000.00918.53
8.1.160.0040.00418.91
8.1.150.0000.00818.75
8.1.140.0070.00018.87
8.1.130.0070.00019.96
8.1.120.0070.00017.43
8.1.110.0050.00217.44
8.1.100.0040.00417.39
8.1.90.0040.00417.42
8.1.80.0040.00417.42
8.1.70.0000.00717.45
8.1.60.0050.00317.46
8.1.50.0000.00717.57
8.1.40.0090.00017.51
8.1.30.0000.00817.61
8.1.20.0040.00417.61
8.1.10.0070.00017.60
8.1.00.0000.00717.57
8.0.300.0000.00720.08
8.0.290.0060.00316.63
8.0.280.0000.00718.52
8.0.270.0070.00017.21
8.0.260.0030.00318.51
8.0.250.0060.00316.80
8.0.240.0000.00716.89
8.0.230.0000.00716.90
8.0.220.0000.00716.68
8.0.210.0000.00716.80
8.0.200.0030.00316.90
8.0.190.0070.00016.91
8.0.180.0000.00816.89
8.0.170.0060.00316.79
8.0.160.0000.00816.87
8.0.150.0040.00316.67
8.0.140.0030.00516.77
8.0.130.0000.00513.28
8.0.120.0060.00316.82
8.0.110.0040.00416.73
8.0.100.0040.00416.94
8.0.90.0040.00416.70
8.0.80.0100.00716.80
8.0.70.0030.00516.79
8.0.60.0040.00416.79
8.0.50.0040.00416.64
8.0.30.0050.01217.04
8.0.20.0110.00717.04
8.0.10.0020.00516.88
8.0.00.0140.00616.77
7.4.330.0050.00015.55
7.4.320.0060.00016.39
7.4.300.0030.00316.62
7.4.290.0030.00316.43
7.4.280.0040.00416.60
7.4.270.0000.00716.45
7.4.260.0040.00416.50
7.4.250.0000.00716.50
7.4.240.0030.00316.45
7.4.230.0030.00316.50
7.4.220.0040.00416.52
7.4.210.0090.00816.54
7.4.200.0000.00816.66
7.4.160.0090.00716.62
7.4.140.0040.01417.86
7.4.130.0060.01116.35
7.4.120.0090.00916.58
7.4.110.0060.01216.74
7.4.100.0140.00416.64
7.4.90.0120.00916.50
7.4.80.0140.00719.39
7.4.70.0090.01016.39
7.4.60.0060.00916.60
7.4.50.0080.00816.55
7.4.40.0060.01616.59
7.4.00.0090.00315.11
7.3.330.0050.00013.06
7.3.320.0000.00613.25
7.3.310.0070.00016.10
7.3.300.0030.00316.24
7.3.290.0020.00516.10
7.3.280.0070.01116.22
7.3.260.0100.00816.28
7.3.240.0110.00816.25
7.3.230.0150.00316.52
7.3.210.0070.01016.45
7.3.200.0060.01216.39
7.3.190.0090.00916.38
7.3.180.0130.00316.51
7.3.170.0080.00816.15
7.3.160.0100.00616.60
7.3.10.0030.01216.48
7.3.00.0080.00816.46
7.2.330.0060.01216.56
7.2.320.0090.01616.79
7.2.310.0030.01316.42
7.2.300.0100.00716.70
7.2.290.0060.00916.51
7.2.130.0080.00716.76
7.2.120.0100.00716.90
7.2.110.0070.00716.80
7.2.100.0070.00816.97
7.2.90.0080.00616.81
7.2.80.0100.00516.87
7.2.70.0100.00416.96
7.2.60.0100.00816.94
7.2.50.0080.00516.88
7.2.40.0100.00616.81
7.2.30.0110.00716.85
7.2.20.0110.00916.95
7.2.10.0070.01016.77
7.2.00.0110.00616.84
7.1.250.0030.01115.60

preferences:
54.16 ms | 400 KiB | 5 Q