3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $callable; public function do() { return ($this->callable)(); } } class Bar { public function __invoke() { echo 'DO IT'; } } $foo = new Foo; $foo->callable = new Bar; ($foo->callable)();

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.0120.00316.75
8.3.50.0140.00718.29
8.3.40.0070.00718.93
8.3.30.0100.00718.70
8.3.20.0040.00420.16
8.3.10.0080.00023.66
8.3.00.0100.00317.63
8.2.180.0030.01616.50
8.2.170.0060.00922.96
8.2.160.0090.00520.30
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00617.50
8.2.110.0090.00020.44
8.2.100.0120.00017.91
8.2.90.0030.00519.27
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0000.00821.13
8.2.30.0000.00720.54
8.2.20.0040.00417.50
8.2.10.0000.00718.00
8.2.00.0000.00718.05
8.1.280.0140.00425.92
8.1.270.0130.00323.75
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0090.00022.12
8.1.230.0110.00022.61
8.1.220.0040.00417.74
8.1.210.0000.00718.77
8.1.200.0000.00917.10
8.1.190.0000.00817.11
8.1.180.0000.00718.10
8.1.170.0060.00318.85
8.1.160.0000.00721.94
8.1.150.0040.00418.75
8.1.140.0000.00819.42
8.1.130.0040.00417.68
8.1.120.0000.00717.45
8.1.110.0000.00917.39
8.1.100.0050.00317.29
8.1.90.0070.00017.38
8.1.80.0000.00917.42
8.1.70.0030.00317.32
8.1.60.0000.00717.48
8.1.50.0000.00917.42
8.1.40.0040.00417.53
8.1.30.0030.00517.69
8.1.20.0040.00417.60
8.1.10.0000.00717.50
8.1.00.0000.00817.41
8.0.300.0040.00418.77
8.0.290.0030.00616.75
8.0.280.0030.00318.45
8.0.270.0070.00017.20
8.0.260.0040.00417.16
8.0.250.0020.00516.86
8.0.240.0000.00816.91
8.0.230.0030.00316.96
8.0.220.0000.00716.73
8.0.210.0000.00716.71
8.0.200.0000.00616.87
8.0.190.0000.00816.88
8.0.180.0030.00516.88
8.0.170.0090.00016.87
8.0.160.0000.00716.96
8.0.150.0040.00316.70
8.0.140.0030.00416.77
8.0.130.0000.00713.31
8.0.120.0040.00416.80
8.0.110.0000.00716.71
8.0.100.0040.00416.85
8.0.90.0040.00416.89
8.0.80.0060.00916.73
8.0.70.0070.00016.70
8.0.60.0030.00316.69
8.0.50.0000.00716.81
8.0.30.0080.01016.97
8.0.20.0110.01017.42
8.0.10.0070.00016.94
8.0.00.0110.00716.64
7.4.330.0020.00215.08
7.4.320.0040.00416.43
7.4.300.0000.00616.53
7.4.290.0070.00016.51
7.4.280.0030.00516.40
7.4.270.0030.00616.43
7.4.260.0030.00616.42
7.4.250.0000.00716.57
7.4.240.0030.00316.51
7.4.230.0000.00716.67
7.4.220.0000.01816.49
7.4.210.0030.01016.45
7.4.200.0070.00016.50
7.4.160.0110.00316.61
7.4.150.0030.01717.40
7.4.140.0160.00917.86
7.4.130.0090.01316.47
7.4.120.0090.00916.41
7.4.110.0080.01316.47
7.4.100.0140.00416.45
7.4.90.0120.00916.51
7.4.80.0100.01019.39
7.4.70.0090.00816.63
7.4.60.0060.01316.41
7.4.50.0030.00316.47
7.4.40.0030.01316.66
7.4.30.0030.01316.55
7.4.00.0050.01214.95
7.3.330.0030.00313.13
7.3.320.0050.00013.23
7.3.310.0030.00316.34
7.3.300.0070.00016.29
7.3.290.0080.00916.25
7.3.280.0110.00616.28
7.3.270.0070.01017.40
7.3.260.0180.00616.49
7.3.250.0110.00616.44
7.3.240.0120.00516.37
7.3.230.0080.00816.57
7.3.210.0120.00416.35
7.3.200.0130.00316.25
7.3.190.0070.00916.55
7.3.180.0070.01416.20
7.3.170.0100.00716.36
7.3.160.0130.00716.21
7.3.120.0090.00514.79
7.3.110.0090.01014.59
7.3.100.0070.00714.77
7.3.90.0100.00614.87
7.3.80.0060.00814.86
7.3.70.0040.00914.65
7.3.60.0050.00814.64
7.3.50.0050.00614.83
7.3.40.0070.00514.63
7.3.30.0070.00714.88
7.3.20.0070.00516.62
7.3.10.0080.00716.70
7.3.00.0040.01216.57
7.2.330.0000.01716.43
7.2.320.0090.01316.60
7.2.310.0120.00816.46
7.2.300.0100.00616.79
7.2.290.0160.00616.52
7.2.250.0070.01214.91
7.2.240.0050.01515.09
7.2.230.0090.00814.80
7.2.220.0060.00815.05
7.2.210.0070.00914.79
7.2.200.0080.00315.02
7.2.190.0060.00414.96
7.2.180.0080.00515.06
7.2.170.0020.01115.07
7.2.110.0760.00316.34
7.2.100.0150.00416.61
7.2.90.0130.00416.84
7.2.80.0050.01116.22
7.2.70.0430.00316.84
7.2.60.0110.00616.59
7.2.50.0120.00816.94
7.2.40.0080.01216.86
7.2.30.0220.00016.97
7.2.20.0120.01416.70
7.2.10.0120.00816.78
7.2.00.0060.00918.07
7.1.330.0070.00815.61
7.1.320.0050.00815.88
7.1.310.0080.00415.86
7.1.300.0050.00615.91
7.1.290.0100.00215.71
7.1.280.0070.00715.74
7.1.270.0050.00915.73
7.1.260.0100.00415.61
7.1.230.0130.00315.81
7.1.220.0160.00015.75
7.1.210.0180.00015.80
7.1.200.0060.00815.74
7.1.190.0130.00315.65
7.1.180.0270.01015.86
7.1.170.0140.00615.77
7.1.160.0260.00315.81
7.1.150.0070.01015.60
7.1.140.0090.00915.63
7.1.130.0200.01115.72
7.1.120.0090.00915.80
7.1.110.0240.00615.67
7.1.100.0070.00916.84
7.1.90.0110.00815.69
7.1.80.0140.00015.66
7.1.70.0130.00316.19
7.1.60.0150.00717.37
7.1.50.0080.01116.36
7.1.40.0100.01015.63
7.1.30.0120.01015.87
7.1.20.0150.00615.82
7.1.10.0040.00815.54
7.1.00.0040.04319.06
7.0.310.0090.00815.33
7.0.300.0140.01115.40
7.0.290.0120.00515.52
7.0.280.0150.00615.34
7.0.270.0270.00315.43
7.0.260.0120.00815.45
7.0.250.0130.00415.39
7.0.240.0160.00315.50
7.0.230.0100.01015.35
7.0.220.0140.00315.36
7.0.210.0080.00815.21
7.0.200.0100.00516.06
7.0.190.0180.00015.41
7.0.180.0080.00815.28
7.0.170.0060.00715.50
7.0.160.0220.00415.53
7.0.150.0160.00315.14
7.0.140.0110.00015.36
7.0.130.0000.01415.54
7.0.120.0880.00315.26
7.0.110.0090.00415.16
7.0.100.0140.00015.23
7.0.90.0030.01115.16
7.0.80.0030.01215.30
7.0.70.0130.00015.48
7.0.60.0100.02117.68
7.0.50.0090.04016.73
7.0.40.0160.03616.80
7.0.30.0210.04416.70
7.0.20.0110.03116.76
7.0.10.0180.02216.84
7.0.00.0090.03616.64
5.6.380.0050.01014.40
5.6.370.0100.00514.08
5.6.360.0110.00814.31
5.6.350.0130.00814.07
5.6.340.0090.00614.32
5.6.330.0100.00814.08
5.6.320.0080.00714.18
5.6.310.0000.01714.22
5.6.300.0070.00514.36
5.6.290.0050.01014.00
5.6.280.0100.03417.70
5.6.270.0110.00214.06
5.6.260.0100.00514.47
5.6.250.0080.00814.30
5.6.240.0100.00514.00
5.6.230.0000.01314.07
5.6.220.0060.00614.33
5.6.210.0080.04617.22
5.6.200.0100.02516.17
5.6.190.0110.04517.29
5.6.180.0180.02317.41
5.6.170.0200.02917.32
5.6.160.0070.04517.27
5.6.150.0080.03316.27
5.6.140.0110.03616.14
5.6.130.0080.04016.11
5.6.120.0090.04517.57
5.6.110.0030.04917.48
5.6.100.0140.02717.46
5.6.90.0090.03717.53
5.6.80.0050.03017.28
5.6.70.2260.01917.15
5.6.60.0070.00714.16
5.6.50.0090.00513.98
5.6.40.0130.00914.00
5.6.30.0070.00713.77
5.6.20.0090.00913.96
5.6.10.0110.00314.16
5.6.00.0150.00014.01
5.5.380.0040.00812.79
5.5.370.0060.00612.79
5.5.360.0110.00012.79
5.5.350.0060.03116.61
5.5.340.0090.03915.38
5.5.330.0060.03216.53
5.5.320.2110.02316.57
5.5.310.0150.03216.52
5.5.300.0040.02915.38
5.5.290.0070.02915.43
5.5.280.0070.04216.79
5.5.270.0120.03816.81
5.5.260.0080.03016.82
5.5.250.0040.02616.74
5.5.240.0070.04516.51
5.5.230.0000.01112.79
5.5.220.0070.00712.79
5.5.210.0070.00512.79
5.5.200.0060.00712.79
5.5.190.0120.00312.79
5.5.180.0060.00612.79
5.5.170.0000.01213.55
5.5.160.0100.00012.79
5.5.150.0080.00412.79
5.5.140.0080.00312.79
5.5.130.0100.00712.79
5.5.120.0130.00312.79
5.5.110.0070.00712.79
5.5.100.0070.00712.79
5.5.90.0090.00612.79
5.5.80.0090.00212.79
5.5.70.0120.00012.79
5.5.60.0000.00812.79
5.5.50.0130.00012.79
5.5.40.0080.00512.79
5.5.30.0080.00412.79
5.5.20.0070.00712.79
5.5.10.0040.00912.79
5.5.00.0070.00712.79
5.4.450.0460.02716.13
5.4.440.0370.02316.06
5.4.430.0400.03216.11
5.4.420.0330.03515.97
5.4.410.0460.02215.91
5.4.400.0450.03615.94
5.4.390.0380.02715.94
5.4.380.0360.03315.81
5.4.370.0400.02915.72
5.4.360.0420.03315.81
5.4.350.0300.03715.94
5.4.340.0350.03015.97
5.4.330.0000.01112.79
5.4.320.0340.03015.85
5.4.310.0290.02915.82
5.4.300.0350.02815.81
5.4.290.0290.03315.95
5.4.280.0300.03415.80
5.4.270.0350.02515.97
5.4.260.0330.03015.90
5.4.250.0340.02715.84
5.4.240.0410.02415.93
5.4.230.0380.02815.70
5.4.220.0290.03115.94
5.4.210.0360.02915.85
5.4.200.0400.02815.95
5.4.190.0350.02715.70
5.4.180.0400.03015.91
5.4.170.0330.02815.91
5.4.160.0420.02915.89
5.4.150.0460.02315.72
5.4.140.0320.03314.61
5.4.130.0380.03014.52
5.4.120.0340.03214.59
5.4.110.0330.03314.66
5.4.100.0380.02714.58
5.4.90.0350.02514.56
5.4.80.0280.03014.59
5.4.70.0350.02814.61
5.4.60.0340.03014.63
5.4.50.0430.02214.60
5.4.40.0280.02514.48
5.4.30.0400.02914.63
5.4.20.0380.02714.63
5.4.10.0270.03514.64
5.4.00.0380.02314.32

preferences:
57.52 ms | 400 KiB | 5 Q