3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callStuff(callable $function) { $function(); } class C { function foo() { echo 'fooooooooooo'; } public function __invoke() { echo 'invoke w00t w00t'; } } $c = new C; callStuff(array($c, '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.0070.00718.31
8.3.50.0120.00721.95
8.3.40.0070.00718.73
8.3.30.0090.00618.96
8.3.20.0000.00720.20
8.3.10.0050.00323.61
8.3.00.0020.00520.81
8.2.180.0170.00016.75
8.2.170.0060.00922.96
8.2.160.0070.01320.35
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0000.00819.35
8.2.110.0070.00322.29
8.2.100.0110.00020.52
8.2.90.0040.00419.15
8.2.80.0000.00817.97
8.2.70.0000.01017.63
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0040.00718.28
8.2.30.0070.00318.17
8.2.20.0040.00417.67
8.2.10.0000.00717.98
8.2.00.0080.00019.36
8.1.280.0150.00025.92
8.1.270.0000.00923.96
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0090.00023.79
8.1.230.0120.00019.09
8.1.220.0070.00017.74
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0000.00817.35
8.1.180.0030.00618.10
8.1.170.0060.00318.50
8.1.160.0000.00721.98
8.1.150.0000.00718.69
8.1.140.0050.00317.38
8.1.130.0000.00817.86
8.1.120.0030.00517.43
8.1.110.0060.00317.29
8.1.100.0000.00717.36
8.1.90.0000.00717.52
8.1.80.0000.00717.45
8.1.70.0000.00717.41
8.1.60.0000.00817.48
8.1.50.0050.00317.54
8.1.40.0030.00617.41
8.1.30.0060.00317.70
8.1.20.0050.00317.53
8.1.10.0030.00617.51
8.1.00.0070.00017.50
8.0.300.0000.00718.77
8.0.290.0060.00316.88
8.0.280.0000.00718.50
8.0.270.0000.00717.31
8.0.260.0000.00717.18
8.0.250.0030.00316.96
8.0.240.0000.00716.91
8.0.230.0080.00017.00
8.0.220.0070.00016.85
8.0.210.0030.00316.92
8.0.200.0080.00016.88
8.0.190.0050.00316.91
8.0.180.0030.00717.00
8.0.170.0070.00016.88
8.0.160.0050.00216.87
8.0.150.0040.00416.84
8.0.140.0050.00316.94
8.0.130.0000.00613.41
8.0.120.0020.00516.84
8.0.110.0040.00416.95
8.0.100.0050.00316.93
8.0.90.0040.00416.92
8.0.80.0130.00316.93
8.0.70.0000.00817.03
8.0.60.0030.00316.84
8.0.50.0040.00416.87
8.0.30.0120.00717.04
8.0.20.0090.01017.40
8.0.10.0070.00017.03
8.0.00.0090.00816.68
7.4.330.0030.00315.00
7.4.320.0060.00016.52
7.4.300.0030.00316.58
7.4.290.0040.00416.44
7.4.280.0080.00316.60
7.4.270.0030.00416.53
7.4.260.0040.00416.54
7.4.250.0030.00316.55
7.4.240.0060.00216.47
7.4.230.0000.00716.34
7.4.220.0150.00916.53
7.4.210.0060.00916.63
7.4.200.0030.00316.67
7.4.160.0140.00316.58
7.4.150.0100.00717.40
7.4.140.0090.00817.86
7.4.130.0140.00616.69
7.4.120.0100.00716.51
7.4.110.0120.00616.57
7.4.100.0120.00916.38
7.4.90.0070.01016.36
7.4.80.0090.00919.39
7.4.70.0090.00616.61
7.4.60.0080.01516.43
7.4.50.0000.00816.25
7.4.40.0000.01816.64
7.4.30.0030.01316.53
7.4.00.0000.01714.80
7.3.330.0030.00313.37
7.3.320.0020.00213.25
7.3.310.0060.00016.30
7.3.300.0080.00016.32
7.3.290.0000.01416.25
7.3.280.0090.01016.26
7.3.270.0250.00017.40
7.3.260.0090.00916.35
7.3.250.0110.01016.46
7.3.240.0000.01616.20
7.3.230.0080.00816.43
7.3.210.0100.01016.60
7.3.200.0030.01719.39
7.3.190.0040.01816.39
7.3.180.0070.01116.58
7.3.170.0100.00716.45
7.3.160.0060.01016.29
7.3.120.0030.00914.86
7.2.330.0110.00616.66
7.2.320.0090.00916.73
7.2.310.0150.00616.78
7.2.300.0140.01016.79
7.2.290.0100.00716.51
7.2.60.0040.01116.92
7.2.00.0060.00619.19
7.1.200.0110.00015.90
7.1.100.0060.00618.11
7.1.70.0000.01116.96
7.1.60.0100.00017.26
7.1.50.0030.01416.86
7.1.40.0040.00716.33
7.1.30.0060.00616.40
7.1.20.0080.00416.67
7.1.10.0030.01316.64
7.1.00.0040.00716.74
7.0.200.0000.00816.73
7.0.190.0040.00416.61
7.0.180.0070.00416.19
7.0.170.0030.00616.51
7.0.160.0000.01116.30
7.0.150.0030.00616.13
7.0.140.0030.00916.45
7.0.130.0030.01416.48
7.0.120.0030.01316.51
7.0.110.0000.00816.50
7.0.100.0080.00016.30
7.0.90.0020.00516.10
7.0.80.0000.00716.37
7.0.70.0040.00416.28
7.0.60.0030.01016.12
7.0.50.0030.01316.49
7.0.40.0000.00715.46
7.0.30.0040.01115.46
7.0.20.0070.00015.46
7.0.10.0070.00015.46
7.0.00.0040.00415.46
5.6.300.0030.08220.80
5.6.290.0030.04020.77
5.6.280.0030.05620.82
5.6.270.0070.04120.99
5.6.260.0030.04121.09
5.6.250.0000.04420.87
5.6.240.0070.06021.05
5.6.230.0070.03821.03
5.6.220.0070.04020.93
5.6.210.0030.05021.03
5.6.200.0070.04520.77
5.6.190.0100.06721.02
5.6.180.0030.03920.87
5.6.170.0000.04320.98
5.6.160.0130.05720.82
5.6.150.0030.04321.05
5.6.140.0070.08720.93
5.6.130.0000.05320.98
5.6.120.0030.04120.74
5.6.110.0130.03021.04
5.6.100.0060.03821.02
5.6.90.0030.04021.01
5.6.80.0030.03820.21
5.6.70.0030.03720.30
5.6.60.0130.07220.33
5.6.50.0060.03520.23
5.6.40.0070.03420.23
5.6.30.0030.03920.19
5.6.20.0030.04020.34
5.6.10.0030.03720.34
5.6.00.0030.03720.18
5.5.380.0030.04117.57
5.5.370.0070.05017.57
5.5.360.0030.04817.62
5.5.350.0000.04217.43
5.5.340.0070.04318.10
5.5.330.0000.05018.09
5.5.320.0030.06118.11
5.5.310.0030.05918.09
5.5.300.0070.04618.02
5.5.290.0100.03918.09
5.5.280.0000.04417.84
5.5.270.0030.04418.18
5.5.260.0030.04618.09
5.5.250.0030.04117.65
5.5.240.0030.03917.51
5.5.230.0000.04217.24
5.5.220.0000.04817.50
5.5.210.0070.03417.46
5.5.200.0000.04317.21
5.5.190.0030.04717.36
5.5.180.0030.03817.48
5.5.160.0030.03717.36
5.5.150.0090.03417.48
5.5.140.0100.05517.45
5.5.130.0070.07917.52
5.5.120.0000.04617.19
5.5.110.0210.03217.37
5.5.100.0030.03917.09
5.5.90.0070.06517.42
5.5.80.0000.04217.34
5.5.70.0030.03617.34
5.5.60.0030.03817.30
5.5.50.0000.04217.08
5.5.40.0030.03917.34
5.5.30.0030.04016.94
5.5.20.0030.04016.98
5.5.10.0100.03617.36
5.5.00.0070.03416.97
5.4.450.0000.04919.29
5.4.440.0000.04219.49
5.4.430.0030.04319.25
5.4.420.0160.03519.55
5.4.410.0030.04119.23
5.4.400.0030.03619.13
5.4.390.0000.04018.90
5.4.380.0070.06919.12
5.4.370.0030.03719.16
5.4.360.0000.04319.21
5.4.350.0100.03018.99
5.4.340.0000.04419.21
5.4.320.0090.03518.90
5.4.310.0030.03618.93
5.4.300.0100.05219.06
5.4.290.0030.03919.20
5.4.280.0030.04119.07
5.4.270.0030.04019.21
5.4.260.0100.03019.06
5.4.250.0000.04419.21
5.4.240.0030.03818.92
5.4.230.0000.04319.07
5.4.220.0030.04518.90
5.4.210.0100.03218.98
5.4.200.0030.03719.23
5.4.190.0230.03019.23
5.4.180.0070.03718.91
5.4.170.0000.04518.97
5.4.160.0030.04018.96
5.4.150.0030.04418.96
5.4.140.0100.03616.50
5.4.130.0030.03316.50
5.4.120.0030.03316.53
5.4.110.0030.03516.47
5.4.100.0030.04216.47
5.4.90.0000.03616.71
5.4.80.0000.04516.75
5.4.70.0040.05616.79
5.4.60.0000.04316.72
5.4.50.0100.05416.61
5.4.40.0000.04216.73
5.4.30.0000.05116.71
5.4.20.0000.03816.71
5.4.10.0030.04716.70
5.4.00.0000.03916.05
5.3.290.0030.03915.46
5.3.280.0100.03615.46
5.3.270.0060.03615.46
5.3.260.0030.03915.46
5.3.250.0030.03415.46
5.3.240.0070.03615.46
5.3.230.0030.03515.46
5.3.220.0040.04215.46
5.3.210.0000.04315.46
5.3.200.0030.04015.46
5.3.190.0000.04115.46
5.3.180.0030.03815.46
5.3.170.0000.07315.46
5.3.160.0100.07115.46
5.3.150.0030.07515.46
5.3.140.0040.03515.46
5.3.130.0070.03715.46
5.3.120.0030.06615.46
5.3.110.0000.07515.46
5.3.100.0000.08015.46
5.3.90.0030.07715.46
5.3.80.0030.05015.46
5.3.70.0000.05315.46
5.3.60.0000.03815.46
5.3.50.0030.03715.46
5.3.40.0040.03515.46
5.3.30.0070.03115.46
5.3.20.0000.03715.46
5.3.10.0000.03615.46
5.3.00.0030.05015.46

preferences:
54.99 ms | 401 KiB | 5 Q