3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callable_equals(callable $a, callable $b){ $f = function(callable $callable){ if(is_string($callable)){ if(count($pieces = explode("::", $callable)) == 2){ return [$pieces[0], $pieces[1]]; } } return $callable; }; $a = $f($a); $b = $f($b); return $a === $b; } class Foo{static function bar(){}} var_dump(callable_equals( ['Foo', 'bar'], 'foo::bar' ));

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.0140.00418.56
8.3.50.0130.00722.18
8.3.40.0070.00718.82
8.3.30.0070.00719.25
8.3.20.0060.00320.29
8.3.10.0040.00421.74
8.3.00.0060.00319.38
8.2.180.0090.01218.29
8.2.170.0100.00622.96
8.2.160.0100.00720.29
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00519.52
8.2.110.0090.00021.03
8.2.100.0070.00418.34
8.2.90.0000.00819.17
8.2.80.0040.00417.97
8.2.70.0000.00817.75
8.2.60.0000.00818.16
8.2.50.0040.00418.07
8.2.40.0040.00419.79
8.2.30.0000.00818.13
8.2.20.0000.00917.70
8.2.10.0000.00818.01
8.2.00.0000.00817.80
8.1.280.0140.00725.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0030.00617.76
8.1.230.0080.00317.77
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0050.00517.35
8.1.180.0040.00418.10
8.1.170.0000.00920.39
8.1.160.0000.00722.14
8.1.150.0030.00618.81
8.1.140.0050.00217.51
8.1.130.0030.00317.73
8.1.120.0040.00417.33
8.1.110.0020.00517.54
8.1.100.0040.00417.50
8.1.90.0000.00717.53
8.1.80.0000.00717.41
8.1.70.0040.00417.41
8.1.60.0060.00317.55
8.1.50.0040.00417.45
8.1.40.0000.00717.43
8.1.30.0040.00417.65
8.1.20.0040.00417.61
8.1.10.0040.00417.52
8.1.00.0050.00217.54
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.50
8.0.270.0040.00417.23
8.0.260.0000.00717.27
8.0.250.0000.00716.97
8.0.240.0000.00716.91
8.0.230.0000.00717.07
8.0.220.0000.00716.94
8.0.210.0000.00716.93
8.0.200.0070.00016.90
8.0.190.0000.00816.89
8.0.180.0030.00316.84
8.0.170.0050.00317.03
8.0.160.0070.00016.98
8.0.150.0050.00216.90
8.0.140.0040.00316.93
8.0.130.0000.00713.48
8.0.120.0040.00416.92
8.0.110.0040.00417.00
8.0.100.0070.00016.95
8.0.90.0000.00816.97
8.0.80.0110.01016.92
8.0.70.0040.00416.89
8.0.60.0000.00816.86
8.0.50.0000.00716.90
8.0.30.0140.00617.05
8.0.20.0160.00517.40
8.0.10.0000.00716.98
8.0.00.0060.01216.95
7.4.330.0030.00315.03
7.4.320.0050.00216.64
7.4.300.0050.00216.62
7.4.290.0050.00216.59
7.4.280.0030.00516.56
7.4.270.0000.00716.57
7.4.260.0000.00716.62
7.4.250.0000.00716.63
7.4.240.0030.00516.55
7.4.230.0070.00016.52
7.4.220.0090.00916.52
7.4.210.0060.00816.68
7.4.200.0020.00516.61
7.4.160.0090.00616.44
7.4.150.0100.00717.40
7.4.140.0080.01217.86
7.4.130.0110.01116.65
7.4.120.0130.00616.62
7.4.110.0030.01416.42
7.4.100.0140.00916.36
7.4.90.0150.00316.45
7.4.80.0060.01319.39
7.4.70.0090.00616.51
7.4.60.0080.00816.48
7.4.50.0000.00716.38
7.4.40.0130.00316.64
7.4.30.0130.00516.30
7.4.00.0000.01315.11
7.3.330.0030.00313.17
7.3.320.0110.00313.26
7.3.310.0070.00016.21
7.3.300.0030.00316.31
7.3.290.0030.00316.32
7.3.280.0100.01016.29
7.3.270.0150.00317.40
7.3.260.0040.01516.62
7.3.250.0110.00616.57
7.3.240.0130.00316.44
7.3.230.0070.01516.48
7.3.210.0100.00716.57
7.3.200.0070.01019.39
7.3.190.0180.00016.53
7.3.180.0060.01116.62
7.3.170.0080.00816.59
7.3.160.0090.00916.34
7.3.10.0080.00816.77
7.3.00.0070.00716.55
7.2.330.0150.00916.69
7.2.320.0070.01116.79
7.2.310.0100.00716.84
7.2.300.0070.01416.69
7.2.290.0110.00716.88
7.2.130.0090.00616.96
7.2.120.0030.01416.87
7.2.110.0070.00716.93
7.2.100.0150.00017.03
7.2.90.0050.00516.95
7.2.80.0060.00916.71
7.2.70.0100.00016.94
7.2.60.0040.00717.03
7.2.50.0130.00016.97
7.2.40.0080.00416.98
7.2.30.0040.00816.55
7.2.20.0050.00516.99
7.2.10.0060.00917.01
7.2.00.0020.01018.37
7.1.250.0070.00315.87
7.1.240.0040.00715.89
7.1.230.0100.00315.96
7.1.220.0040.00415.84
7.1.210.0040.00815.77
7.1.200.0070.00715.82
7.1.190.0070.00715.96
7.1.180.0070.00715.95
7.1.170.0030.01015.78
7.1.160.0000.01315.89
7.1.150.0040.00415.87
7.1.140.0030.01015.98
7.1.130.0050.00315.98
7.1.120.0000.01215.77
7.1.110.0000.01516.04
7.1.100.0070.00716.94
7.1.90.0000.00815.53
7.1.80.0090.00615.69
7.1.70.0030.00816.46
7.1.60.0050.01417.53
7.1.50.0080.01016.46
7.1.40.0040.01115.99
7.1.30.0100.00315.91
7.1.20.0040.00715.85
7.1.10.0050.00515.89
7.1.00.0020.04319.14
7.0.330.0080.00715.32
7.0.320.0000.01315.49
7.0.310.0060.00615.62
7.0.300.0000.01115.36
7.0.290.0030.00515.46
7.0.280.0060.00615.41
7.0.270.0090.00315.33
7.0.260.0100.00715.30
7.0.250.0040.01115.43
7.0.240.0090.00315.46
7.0.230.0090.00615.48
7.0.220.0090.00615.60
7.0.210.0060.00615.46
7.0.200.0100.00415.11
7.0.190.0030.01015.49
7.0.180.0000.01015.46
7.0.170.0040.01115.34
7.0.160.0070.00715.59
7.0.150.0060.01015.20
7.0.140.0030.04418.54
7.0.130.0070.00715.31
7.0.120.0040.01215.42
7.0.110.0030.00715.17
7.0.100.0030.01015.27
7.0.90.0030.01215.18
7.0.80.0000.00815.30
7.0.70.0030.01015.48
7.0.60.0080.03717.58
7.0.50.0070.03816.71
7.0.40.0020.04816.77
7.0.30.0120.03116.74
7.0.20.0100.03316.68
7.0.10.0170.02416.90
7.0.00.0080.04216.81
5.6.380.0040.00714.43
5.6.370.0070.00314.53
5.6.360.0040.00814.35
5.6.350.0030.01014.34
5.6.340.0040.00714.43
5.6.330.0060.00614.24
5.6.320.0050.00514.32
5.6.310.0030.01014.64
5.6.300.0100.00714.15
5.6.290.0000.01414.53
5.6.280.0070.00714.39
5.6.270.0150.00014.29
5.6.260.0040.00414.34
5.6.250.0120.00314.33
5.6.240.0030.01314.41
5.6.230.0080.00314.52
5.6.220.0070.01014.45
5.6.210.0030.04917.57
5.6.200.0070.04316.21
5.6.190.0050.04417.27
5.6.180.0200.02317.41
5.6.170.0120.04717.50
5.6.160.0070.03217.46
5.6.150.0100.04016.41
5.6.140.0100.02016.36
5.6.130.0050.02716.25
5.6.120.0060.04517.71
5.6.110.0110.03817.87
5.6.100.0080.04317.59
5.6.90.0080.04017.78
5.6.80.0050.02317.22
5.6.70.0120.04017.40
5.6.60.0080.00814.58
5.6.50.0070.01014.32
5.6.40.0000.01514.25
5.6.30.0040.01114.40
5.6.20.0040.00414.34
5.6.10.0120.00314.22
5.6.00.0000.00814.31
5.5.380.0030.00910.77
5.5.370.0090.00010.85
5.5.360.0000.01011.00
5.5.350.0100.03815.61
5.5.340.0050.04214.46
5.5.330.0070.03715.58
5.5.320.0100.02615.76
5.5.310.0130.04215.73
5.5.300.0060.04614.58
5.5.290.0070.02714.67
5.5.280.0050.04716.02
5.5.270.0040.02715.98
5.5.260.0070.03115.90
5.5.250.0070.04415.97
5.5.240.0050.03815.65
5.5.230.0070.00311.30
5.5.220.0080.00011.02
5.5.210.0030.00310.99
5.5.200.0060.00011.42
5.5.190.0040.00411.20
5.5.180.0000.01010.97
5.5.170.0070.00011.23
5.5.160.0040.00811.06
5.5.150.0060.00610.98
5.5.140.0060.00010.73
5.5.130.0030.00911.25
5.5.120.0040.00811.34
5.5.110.0060.00011.33
5.5.100.0080.00311.15
5.5.90.0070.00710.89
5.5.80.0030.00311.03
5.5.70.0090.00311.24
5.5.60.0060.00611.40
5.5.50.0000.01011.27
5.5.40.0040.00811.24
5.5.30.0000.01011.33
5.5.20.0090.00311.13
5.5.10.0060.00611.21
5.5.00.0030.00311.23
5.4.450.0320.03515.29
5.4.440.0040.03615.23
5.4.430.0550.03315.19
5.4.420.0450.03115.12
5.4.410.0470.02915.16
5.4.400.0130.02614.90
5.4.390.0150.02514.71
5.4.380.0070.04414.84
5.4.370.0140.02614.70
5.4.360.0150.03714.92
5.4.350.0080.03514.87
5.4.340.0050.03514.69
5.4.330.0060.00610.68
5.4.320.0070.03414.93
5.4.310.0030.04014.86
5.4.300.0120.02514.85
5.4.290.0070.03014.80
5.4.280.0100.03014.75
5.4.270.0130.02715.00
5.4.260.0070.03614.83
5.4.250.0150.03814.95
5.4.240.0120.02914.69
5.4.230.0220.02214.83
5.4.220.0130.02714.93
5.4.210.0130.02514.84
5.4.200.0070.02913.77
5.4.190.0080.02814.70
5.4.180.0130.03014.71
5.4.170.0120.03114.67
5.4.160.0130.03014.75
5.4.150.0110.03314.90
5.4.140.0110.03113.66
5.4.130.0150.02513.46
5.4.120.0130.02513.63
5.4.110.0070.03213.68
5.4.100.0120.03713.71
5.4.90.0070.03313.67
5.4.80.0150.03313.67
5.4.70.0070.03413.47
5.4.60.0050.03513.60
5.4.50.0070.03113.53
5.4.40.0130.02813.56
5.4.30.0060.03113.70
5.4.20.0070.03213.54
5.4.10.0100.03113.70
5.4.00.0130.02713.38
5.3.290.0100.04312.60
5.3.280.0160.02812.48
5.3.270.0100.03212.39
5.3.260.0120.02912.42
5.3.250.0120.02712.46
5.3.240.0080.03612.39
5.3.230.0100.03112.45
5.3.220.0070.03012.45
5.3.210.0090.03312.49
5.3.200.0130.02512.58
5.3.190.0150.02512.57
5.3.180.0130.02712.53
5.3.170.0100.03512.59
5.3.160.0180.02012.49
5.3.150.0080.04112.50
5.3.140.0070.03112.51
5.3.130.0120.02712.44
5.3.120.0050.03912.46
5.3.110.0170.02412.42
5.3.100.0080.03112.21
5.3.90.0100.02812.21
5.3.80.0130.03212.15
5.3.70.0050.03012.23
5.3.60.0080.02812.15
5.3.50.0120.02412.11
5.3.40.0110.02712.09
5.3.30.0100.02812.19
5.3.20.0110.02511.96
5.3.10.0100.02711.92
5.3.00.0120.02711.90
5.2.170.0080.02310.69
5.2.160.0080.02110.67
5.2.150.0030.02610.72
5.2.140.0060.02310.67
5.2.130.0050.02310.66
5.2.120.0080.02110.64
5.2.110.0060.02210.66
5.2.100.0070.02310.75
5.2.90.0050.02510.69
5.2.80.0050.02610.70
5.2.70.0080.02110.64
5.2.60.0070.02510.60
5.2.50.0030.02810.62
5.2.40.0070.02510.60
5.2.30.0100.02110.63
5.2.20.0080.02010.57
5.2.10.0130.01810.56
5.2.00.0020.02510.44
5.1.60.0070.01910.15
5.1.50.0070.01910.14
5.1.40.0080.02010.09
5.1.30.0070.02010.29
5.1.20.0060.02210.32
5.1.10.0070.01910.18
5.1.00.0010.02310.16
5.0.50.0040.0179.38
5.0.40.0010.0199.29
5.0.30.0050.0229.29
5.0.20.0050.0199.29
5.0.10.0030.0189.16
5.0.00.0070.0259.25
4.4.90.0050.0178.03
4.4.80.0020.0188.02
4.4.70.0070.0108.01
4.4.60.0070.0108.09
4.4.50.0090.0078.03
4.4.40.0050.0178.07
4.4.30.0030.0138.04
4.4.20.0030.0138.06
4.4.10.0030.0138.08
4.4.00.0030.0208.09
4.3.110.0020.0158.00
4.3.100.0030.0158.04
4.3.90.0050.0128.00
4.3.80.0020.0207.99
4.3.70.0060.0117.98
4.3.60.0030.0137.99
4.3.50.0040.0148.02
4.3.40.0030.0207.99
4.3.30.0020.0157.37
4.3.20.0020.0137.35
4.3.10.0060.0107.32
4.3.00.0060.0138.64

preferences:
54.81 ms | 401 KiB | 5 Q