3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { static public function StaticRawr($name = '') { echo 'Rawr from static!'; if (!empty($name)) echo $name; } public $name = ''; public function Rawr() { echo 'Rawr! ' . $this->name; call_user_func(['self', 'StaticRawr'], $this->name); } } $rawrStatic = ['Test', 'StaticRawr']; $rawrStatic(); $testObj = new Test; $testObj->name = 'Вася'; $rawrObj = [$testObj, 'Rawr']; $rawrObj();

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.68
8.3.50.0270.00522.11
8.3.40.0070.01318.96
8.3.30.0150.00018.93
8.3.20.0040.00418.90
8.3.10.0050.00321.14
8.3.00.0000.00721.86
8.2.180.0100.00716.63
8.2.170.0090.00622.96
8.2.160.0150.00420.39
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0040.00720.89
8.2.110.0040.00422.25
8.2.100.0060.00617.74
8.2.90.0050.00219.17
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0060.00318.04
8.2.50.0050.00318.07
8.2.40.0040.00418.28
8.2.30.0040.00419.32
8.2.20.0040.00417.58
8.2.10.0000.00717.63
8.2.00.0040.00417.74
8.1.280.0130.00725.92
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.47
8.1.230.0060.00620.82
8.1.220.0080.00018.77
8.1.210.0000.00818.94
8.1.200.0060.00317.25
8.1.190.0080.00017.51
8.1.180.0050.00318.10
8.1.170.0000.00918.61
8.1.160.0080.00018.83
8.1.150.0040.00618.64
8.1.140.0060.00317.51
8.1.130.0030.00317.87
8.1.120.0040.00417.49
8.1.110.0000.00717.47
8.1.100.0040.00417.37
8.1.90.0000.00717.48
8.1.80.0040.00417.38
8.1.70.0030.00317.41
8.1.60.0060.00317.47
8.1.50.0050.00317.44
8.1.40.0050.00317.53
8.1.30.0050.00217.55
8.1.20.0040.00417.63
8.1.10.0000.00717.45
8.1.00.0000.00717.34
8.0.300.0070.00019.98
8.0.290.0070.00017.05
8.0.280.0000.00718.45
8.0.270.0030.00317.26
8.0.260.0000.00916.73
8.0.250.0040.00416.86
8.0.240.0040.00416.89
8.0.230.0000.00917.01
8.0.220.0070.00016.92
8.0.210.0000.00716.79
8.0.200.0030.00316.84
8.0.190.0000.00717.02
8.0.180.0070.00016.95
8.0.170.0000.00816.89
8.0.160.0030.00316.87
8.0.150.0000.00716.85
8.0.140.0030.00816.82
8.0.130.0030.00313.32
8.0.120.0040.00416.86
8.0.110.0000.00716.69
8.0.100.0050.00216.69
8.0.90.0000.00717.00
8.0.80.0080.00716.86
8.0.70.0000.00716.96
8.0.60.0070.00016.73
8.0.50.0000.00716.80
8.0.30.0130.00517.13
8.0.20.0080.01117.40
8.0.10.0000.00716.87
8.0.00.0110.00716.78
7.4.330.0050.00016.84
7.4.320.0060.00316.58
7.4.300.0000.00716.36
7.4.290.0000.00716.51
7.4.280.0070.00016.54
7.4.270.0030.00316.62
7.4.260.0000.00513.24
7.4.250.0040.00416.59
7.4.240.0000.00716.52
7.4.230.0070.00016.41
7.4.220.0130.01316.43
7.4.210.0090.00616.60
7.4.200.0000.00716.40
7.4.190.0040.00416.41
7.4.160.0160.00016.58
7.4.150.0030.01617.40
7.4.140.0130.00317.86
7.4.130.0140.00316.57
7.4.120.0060.01216.56
7.4.110.0030.01616.61
7.4.100.0130.00916.48
7.4.90.0040.01516.54
7.4.80.0150.00719.39
7.4.70.0070.01016.57
7.4.60.0060.01416.50
7.4.50.0000.00816.42
7.4.40.0060.00922.77
7.4.30.0030.01716.50
7.4.00.0030.00714.54
7.3.330.0030.00313.14
7.3.320.0050.00013.06
7.3.310.0000.00716.30
7.3.300.0070.00016.35
7.3.290.0030.01016.23
7.3.280.0100.00716.27
7.3.270.0000.01817.40
7.3.260.0140.00818.24
7.3.250.0090.00816.49
7.3.240.0110.00616.36
7.3.230.0090.00916.39
7.3.210.0120.00916.65
7.3.200.0060.01319.39
7.3.190.0100.01416.38
7.3.180.0040.01116.39
7.3.170.0090.01316.64
7.3.160.0110.00516.36
7.3.120.0120.00314.86
7.2.330.0090.00916.72
7.2.320.0070.01616.31
7.2.310.0150.00716.67
7.2.300.0100.00716.86
7.2.290.0060.01516.70
7.2.00.0030.01219.39
7.1.100.0750.01016.02
7.1.70.0000.01017.28
7.1.60.0070.01819.40
7.1.50.0100.01316.79
7.1.00.0000.03722.44
7.0.200.0000.00716.93
7.0.140.0030.07322.10
7.0.100.0070.08019.96
7.0.90.0070.08019.94
7.0.80.0070.07719.88
7.0.70.0100.04019.89
7.0.60.0100.03319.99
7.0.50.0200.03320.34
7.0.40.0000.04320.11
7.0.30.0070.05720.18
7.0.20.0070.08320.18
7.0.10.0100.08020.14
7.0.00.0100.03319.99
5.6.250.0100.07720.73
5.6.240.0100.07320.51
5.6.230.0000.05320.57
5.6.220.0070.03720.63
5.6.210.0070.03320.56
5.6.200.0170.03021.11
5.6.190.0070.04021.03
5.6.180.0000.04720.94
5.6.170.0130.07020.98
5.6.160.0030.08721.03
5.6.150.0030.04321.03
5.6.140.0070.03721.17
5.6.130.0030.04721.05
5.6.120.0130.07720.98
5.6.110.0070.04021.10
5.6.100.0030.05021.02
5.6.90.0070.04321.09
5.6.80.0070.03320.50
5.6.70.0070.03320.42
5.6.60.0100.03720.39
5.6.50.0000.04320.34
5.6.40.0030.04020.47
5.6.30.0000.04020.32
5.6.20.0070.03720.40
5.6.10.0070.03720.44
5.6.00.0000.04020.45
5.5.380.0100.06720.40
5.5.370.0100.08320.36
5.5.360.0070.04020.36
5.5.350.0070.03720.38
5.5.340.0030.04320.93
5.5.330.0000.05020.64
5.5.320.0070.07720.84
5.5.310.0100.07720.93
5.5.300.0030.04020.80
5.5.290.0100.03720.91
5.5.280.0130.03320.76
5.5.270.0070.04020.80
5.5.260.0100.03720.91
5.5.250.0000.04320.46
5.5.240.0030.03720.23
5.5.230.0100.03320.03
5.5.220.0030.04320.21
5.5.210.0000.04720.16
5.5.200.0000.03720.27
5.5.190.0030.04020.16
5.5.180.0030.03720.19
5.5.160.0030.04020.00
5.5.150.0030.04720.24
5.5.140.0070.04720.26
5.5.130.0070.03020.21
5.5.120.0070.03720.16
5.5.110.0070.03320.24
5.5.100.0000.04320.11
5.5.90.0000.05320.11
5.5.80.0100.07020.16
5.5.70.0100.07320.14
5.5.60.0030.04720.10
5.5.50.0000.04320.06
5.5.40.0100.03719.93
5.5.30.0230.06020.08
5.5.20.0070.05020.03
5.5.10.0100.07320.08
5.5.00.0070.07319.97
5.4.450.0030.04019.42
5.4.440.0000.04019.55
5.4.430.0070.03319.17
5.4.420.0030.04319.54
5.4.410.0100.03019.09
5.4.400.0100.03319.05
5.4.390.0070.03719.03
5.4.380.0100.03019.04
5.4.370.0000.03719.25
5.4.360.0030.03719.16
5.4.350.0000.04018.87
5.4.340.0000.04719.14
5.4.320.0000.04319.04
5.4.310.0030.04019.04
5.4.300.0000.04319.09
5.4.290.0070.03019.13
5.4.280.0070.04019.16
5.4.270.0000.04718.95
5.4.260.0000.04018.88
5.4.250.0070.03319.20
5.4.240.0170.06019.04
5.4.230.0030.08019.02
5.4.220.0000.04319.05
5.4.210.0130.07018.84
5.4.200.0130.03719.20
5.4.190.0030.03718.84
5.4.180.0100.07318.86
5.4.170.0170.06019.14
5.4.160.0170.06719.23
5.4.150.0030.04019.18
5.4.140.0070.07316.42
5.4.130.0070.06016.40
5.4.120.0070.07716.45
5.4.110.0070.04716.38
5.4.100.0070.06316.51
5.4.90.0070.06016.40
5.4.80.0030.07716.41
5.4.70.0070.03716.49
5.4.60.0070.07016.31
5.4.50.0100.05316.30
5.4.40.0100.06316.54
5.4.30.0000.05016.42
5.4.20.0170.05716.41
5.4.10.0000.07716.24
5.4.00.0070.04015.89
5.3.290.0000.04014.73
5.3.280.0030.05314.52
5.3.270.0170.07014.67
5.3.260.0070.04314.56
5.3.250.0100.03314.67
5.3.240.0100.07314.55
5.3.230.0170.07314.65
5.3.220.0030.04714.55
5.3.210.0100.07714.52
5.3.200.0200.06314.66
5.3.190.0030.04314.62
5.3.180.0070.07714.54
5.3.170.0000.05014.49
5.3.160.0170.06714.63
5.3.150.0070.05014.56
5.3.140.0000.04714.59
5.3.130.0070.04014.55
5.3.120.0130.06714.56
5.3.110.0100.07314.69
5.3.100.0100.07314.05
5.3.90.0070.07714.02
5.3.80.0070.05014.03
5.3.70.0000.05714.09
5.3.60.0130.06314.07
5.3.50.0130.06313.85
5.3.40.0000.04313.84
5.3.30.0070.05313.85
5.3.20.0070.05013.81
5.3.10.0030.07013.74
5.3.00.0100.06713.61
5.2.170.0070.06311.25
5.2.160.0070.05711.27
5.2.150.0030.06711.06
5.2.140.0070.06011.17
5.2.130.0070.06010.96
5.2.120.0070.04711.02
5.2.110.0000.06711.05
5.2.100.0030.06711.16
5.2.90.0130.04711.03
5.2.80.0070.05011.23
5.2.70.0070.03011.20
5.2.60.0000.06310.91
5.2.50.0000.04011.16
5.2.40.0000.07011.00
5.2.30.0070.04010.89
5.2.20.0070.03710.88
5.2.10.0000.05010.80
5.2.00.0100.04310.68
5.1.60.0070.05010.05
5.1.50.0100.0479.84
5.1.40.0070.03710.05
5.1.30.0070.05710.25
5.1.20.0030.05310.46
5.1.10.0070.05010.16
5.1.00.0000.05710.17
5.0.50.0030.0439.07
5.0.40.0070.0409.07
5.0.30.0000.0409.07
5.0.20.0030.0439.07
5.0.10.0070.0409.07
5.0.00.0000.0639.07
4.4.90.0030.0379.07
4.4.80.0000.0279.07
4.4.70.0000.0409.07
4.4.60.0070.0239.07
4.4.50.0030.0279.07
4.4.40.0070.0509.07
4.4.30.0030.0339.07
4.4.20.0030.0309.07
4.4.10.0030.0409.07
4.4.00.0030.0479.07
4.3.110.0000.0379.07
4.3.100.0070.0279.07
4.3.90.0070.0309.07
4.3.80.0000.0509.07
4.3.70.0070.0309.07
4.3.60.0000.0209.07
4.3.50.0000.0309.07
4.3.40.0000.0509.07
4.3.30.0000.0379.07
4.3.20.0000.0379.07
4.3.10.0000.0179.07
4.3.00.0000.0379.07

preferences:
46.02 ms | 401 KiB | 5 Q