3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ParentClass { public function foo() { } } class ChildClass extends ParentClass { public function foo() { } } $parentCallable = [new ChildClass(), 'parent::foo']; $childCallable = [new ChildClass(), 'self::foo']; \is_callable($parentCallable, false, $parentName); \is_callable($childCallable, false, $childName); echo $parentName; echo "\n"; echo $childName;

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.0110.00418.30
8.3.50.0140.00316.26
8.3.40.0070.01118.94
8.3.30.0080.00818.57
8.3.20.0060.00319.37
8.3.10.0040.00423.56
8.3.00.0040.00422.44
8.2.180.0110.00425.92
8.2.170.0070.01022.96
8.2.160.0070.00721.21
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0070.00021.15
8.2.110.0100.00019.27
8.2.100.0070.00417.97
8.2.90.0080.00017.75
8.2.80.0040.00417.97
8.2.70.0000.00817.78
8.2.60.0030.00618.22
8.2.50.0030.00618.10
8.2.40.0030.00521.11
8.2.30.0000.00720.63
8.2.20.0070.00018.12
8.2.10.0040.00418.23
8.2.00.0040.00419.27
8.1.280.0180.00025.92
8.1.270.0030.00823.79
8.1.260.0090.00626.35
8.1.250.0040.00428.09
8.1.240.0100.00019.03
8.1.230.0110.00018.95
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0000.00917.35
8.1.190.0000.00917.35
8.1.180.0050.00318.10
8.1.170.0000.00818.84
8.1.160.0040.00418.95
8.1.150.0040.00418.89
8.1.140.0040.00420.80
8.1.130.0000.00718.94
8.1.120.0000.00717.30
8.1.110.0020.00617.39
8.1.100.0040.00417.45
8.1.90.0070.00417.42
8.1.80.0000.00717.44
8.1.70.0080.00317.44
8.1.60.0040.00717.61
8.1.50.0110.00017.54
8.1.40.0000.00817.54
8.1.30.0050.00217.48
8.1.20.0000.00717.54
8.1.10.0040.00417.56
8.1.00.0050.00217.50
8.0.300.0040.00418.84
8.0.290.0050.00316.75
8.0.280.0030.00318.40
8.0.270.0000.00817.29
8.0.260.0030.00320.11
8.0.250.0070.00016.87
8.0.240.0030.00316.82
8.0.230.0070.00016.94
8.0.220.0040.00416.90
8.0.210.0030.00316.83
8.0.200.0060.00016.97
8.0.190.0060.00316.93
8.0.180.0080.00016.98
8.0.170.0030.00616.94
8.0.160.0000.00716.84
8.0.150.0060.00316.85
8.0.140.0040.00416.91
8.0.130.0030.00313.27
8.0.120.0000.00816.78
8.0.110.0000.00716.75
8.0.100.0040.00416.71
8.0.90.0040.00416.79
8.0.80.0090.00816.89
8.0.70.0000.00716.93
8.0.60.0000.00716.73
8.0.50.0080.00016.83
8.0.30.0110.00817.22
8.0.20.0060.01217.40
8.0.10.0000.00717.13
8.0.00.0100.00816.79
7.4.330.0000.00515.55
7.4.320.0070.00216.55
7.4.300.0030.00316.59
7.4.290.0070.00016.59
7.4.280.0000.00816.54
7.4.270.0000.00716.52
7.4.260.0030.00816.38
7.4.250.0030.00316.61
7.4.240.0040.00416.67
7.4.230.0040.00416.54
7.4.220.0040.00416.57
7.4.210.0090.00716.58
7.4.200.0050.00216.34
7.4.160.0110.00516.55
7.4.140.0090.01017.86
7.4.130.0110.00816.54
7.4.120.0060.01416.60
7.4.110.0080.00816.65
7.4.100.0100.00716.53
7.4.90.0060.00416.35
7.4.80.0140.00719.39
7.4.70.0060.01016.54
7.4.60.0070.01016.43
7.4.50.0140.00316.53
7.4.40.0130.00916.60
7.4.00.0180.00014.86
7.3.330.0000.00513.30
7.3.320.0030.00313.27
7.3.310.0070.00016.27
7.3.300.0060.00016.29
7.3.290.0000.00716.16
7.3.280.0080.01016.25
7.3.260.0090.00916.41
7.3.240.0080.01116.57
7.3.230.0130.00316.36
7.3.210.0060.01016.55
7.3.200.0060.01016.67
7.3.190.0030.01416.33
7.3.180.0100.00916.33
7.3.170.0090.00816.26
7.3.160.0120.01216.47
7.2.330.0070.01316.73
7.2.320.0090.00916.55
7.2.310.0090.00916.55
7.2.300.0140.00316.68
7.2.290.0100.00716.35
7.2.90.0710.01614.56
7.2.80.0070.01714.77
7.2.70.0140.01014.80
7.2.60.0210.00614.82
7.2.50.0090.00914.71
7.2.40.0140.00314.76
7.2.30.0100.00714.75
7.2.20.3080.00314.95
7.2.10.0360.00414.41
7.2.00.0170.01014.73
7.1.210.1680.01913.96
7.1.200.1860.00613.86
7.1.190.0080.00413.75
7.1.180.1260.00413.92
7.1.170.0250.00613.60
7.1.160.1940.00313.75
7.1.150.0060.00613.66
7.1.140.0110.01113.76
7.1.130.0630.00513.96
7.1.120.0630.00313.87
7.1.110.0090.00613.77
7.1.100.0060.01213.82
7.1.90.0080.01113.79
7.1.80.0040.01213.74
7.1.70.0740.01513.87
7.1.60.0320.01131.95
7.1.50.0160.01931.75
7.1.40.0320.00431.79
7.1.30.0220.01531.86
7.1.20.0240.00931.94
7.1.10.0090.00913.59
7.1.00.1310.00313.77

preferences:
71.51 ms | 401 KiB | 5 Q