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.0120.00918.43
8.3.50.0140.00621.20
8.3.40.0060.00918.97
8.3.30.0100.00718.71
8.3.20.0000.00818.69
8.3.10.0110.00720.97
8.3.00.0040.00421.90
8.2.180.0160.00616.50
8.2.170.0110.00422.96
8.2.160.0030.01020.32
8.2.150.0070.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0060.00319.00
8.2.110.0080.00322.30
8.2.100.0050.00517.78
8.2.90.0000.00817.99
8.2.80.0030.00617.97
8.2.70.0040.00417.37
8.2.60.0100.00018.04
8.2.50.0050.00318.07
8.2.40.0000.00818.16
8.2.30.0040.00421.22
8.2.20.0080.00017.72
8.2.10.0000.00717.75
8.2.00.0030.00717.70
8.1.280.0100.01025.92
8.1.270.0040.00423.99
8.1.260.0030.01626.35
8.1.250.0110.00628.09
8.1.240.0030.00622.02
8.1.230.0000.01120.69
8.1.220.0040.00417.74
8.1.210.0060.00318.93
8.1.200.0070.00317.35
8.1.190.0040.00417.30
8.1.180.0080.00018.10
8.1.170.0040.00418.65
8.1.160.0000.00718.83
8.1.150.0030.00518.50
8.1.140.0020.00517.43
8.1.130.0030.00517.72
8.1.120.0070.00017.41
8.1.110.0040.00417.29
8.1.100.0050.00217.37
8.1.90.0000.00717.46
8.1.80.0000.00717.29
8.1.70.0030.00317.28
8.1.60.0060.00317.60
8.1.50.0030.00517.43
8.1.40.0030.00617.43
8.1.30.0000.00817.71
8.1.20.0000.00917.70
8.1.10.0030.00517.57
8.1.00.0070.00317.41
8.0.300.0080.00019.96
8.0.290.0000.00816.93
8.0.280.0040.00418.43
8.0.270.0000.00717.11
8.0.260.0000.00816.78
8.0.250.0040.00416.99
8.0.240.0040.00416.92
8.0.230.0040.00416.82
8.0.220.0030.00516.90
8.0.210.0040.00416.86
8.0.200.0040.00416.82
8.0.190.0030.00316.98
8.0.180.0040.00416.95
8.0.170.0040.00416.89
8.0.160.0040.00316.98
8.0.150.0040.00416.86
8.0.140.0070.00016.81
8.0.130.0000.00613.41
8.0.120.0000.00716.86
8.0.110.0040.00416.94
8.0.100.0000.00716.93
8.0.90.0050.00316.75
8.0.80.0060.00916.87
8.0.70.0040.00416.90
8.0.60.0030.00516.75
8.0.50.0040.00416.93
8.0.30.0040.01617.02
8.0.20.0100.00817.40
8.0.10.0100.00017.08
8.0.00.0090.00916.66
7.4.330.0030.00316.80
7.4.320.0040.00416.46
7.4.300.0000.00816.49
7.4.290.0030.00316.46
7.4.280.0050.00316.51
7.4.270.0000.00716.46
7.4.260.0000.00513.31
7.4.250.0030.00616.46
7.4.240.0000.00716.44
7.4.230.0070.00016.58
7.4.220.0040.01616.49
7.4.210.0090.00616.51
7.4.200.0080.00016.50
7.4.190.0030.00416.32
7.4.160.0060.00916.58
7.4.150.0060.01117.40
7.4.140.0120.00517.86
7.4.130.0120.01016.46
7.4.120.0130.00816.63
7.4.110.0030.01416.54
7.4.100.0070.01316.51
7.4.90.0030.01716.48
7.4.80.0090.02019.39
7.4.70.0080.00816.52
7.4.60.0100.00716.30
7.4.50.0050.00016.50
7.4.40.0090.00322.77
7.4.30.0100.00616.45
7.4.00.0080.00814.99
7.3.330.0030.00313.32
7.3.320.0000.00513.42
7.3.310.0070.00016.47
7.3.300.0000.00716.38
7.3.290.0110.00716.38
7.3.280.0090.01016.38
7.3.270.0100.01017.40
7.3.260.0120.00818.24
7.3.250.0040.01816.34
7.3.240.0120.00616.66
7.3.230.0150.00616.52
7.3.210.0030.01316.42
7.3.200.0110.01119.39
7.3.190.0080.00816.58
7.3.180.0110.00516.43
7.3.170.0110.00716.44
7.3.160.0080.00816.35
7.3.120.0080.01114.80
7.3.110.0090.00915.09
7.3.100.0030.01314.57
7.3.90.0080.00614.70
7.3.80.0000.01314.80
7.3.70.0070.00414.80
7.3.60.0030.01014.73
7.3.50.0090.00814.63
7.3.40.0050.00814.66
7.3.30.0090.00514.84
7.3.20.0070.00916.74
7.3.10.0100.00616.52
7.3.00.0060.00916.55
7.2.330.0150.00616.66
7.2.320.0130.00316.49
7.2.310.0040.00616.54
7.2.300.0110.01116.33
7.2.290.0070.01016.61
7.2.250.0070.01214.86
7.2.240.0090.00814.90
7.2.230.0090.00514.81
7.2.220.0050.01114.90
7.2.210.0060.00914.98
7.2.200.0060.00514.78
7.2.190.0050.00914.76
7.2.180.0020.01314.89
7.2.170.0080.00614.81
7.2.160.0110.00614.75
7.2.150.0120.00316.71
7.2.140.0110.00616.69
7.2.130.0090.00816.76
7.2.120.0060.00916.87
7.2.110.0050.00716.87
7.2.100.0050.01016.55
7.2.90.0080.00516.80
7.2.80.0030.01016.71
7.2.70.0030.01016.83
7.2.60.0090.00716.81
7.2.50.0110.00316.87
7.2.40.0080.00316.64
7.2.30.0100.00516.61
7.2.20.0040.01216.57
7.2.10.0060.00616.52
7.2.00.0040.00617.49
7.1.330.0090.00815.64
7.1.320.0070.01015.44
7.1.310.0090.00215.62
7.1.300.0050.00915.36
7.1.290.0050.00915.42
7.1.280.0090.00815.71
7.1.270.0090.00815.43
7.1.260.0030.00915.74
7.1.250.0070.00715.55
7.1.240.0040.00815.56
7.1.230.0000.01315.67
7.1.220.0000.01115.38
7.1.210.0100.00715.60
7.1.200.0070.00715.37
7.1.190.0080.00315.78
7.1.180.0030.00915.65
7.1.170.0090.00615.58
7.1.160.0070.00715.61
7.1.150.0060.00615.68
7.1.140.0070.01015.52
7.1.130.0080.00615.67
7.1.120.0030.00915.58
7.1.110.0000.01415.57
7.1.100.0080.00616.81
7.1.90.0030.00715.38
7.1.80.0000.01415.29
7.1.70.0030.00916.25
7.1.60.0050.01617.52
7.1.50.0060.01016.39
7.1.40.0060.00915.59
7.1.30.0090.00615.60
7.1.20.0110.00415.56
7.1.10.0070.00815.57
7.1.00.0030.03219.05
7.0.330.0070.00715.32
7.0.320.0030.01015.27
7.0.310.0090.00615.41
7.0.300.0030.01315.60
7.0.290.0040.00715.39
7.0.280.0050.00315.39
7.0.270.0030.01215.34
7.0.260.0040.00715.27
7.0.250.0000.01415.39
7.0.240.0070.00315.24
7.0.230.0050.00515.55
7.0.220.0070.00715.39
7.0.210.0080.01115.21
7.0.200.0070.00516.03
7.0.190.0000.01715.47
7.0.180.0100.00315.51
7.0.170.0120.00415.21
7.0.160.0140.00015.33
7.0.150.0030.01315.51
7.0.140.0060.03918.79
7.0.130.0070.00715.55
7.0.120.0080.00315.50
7.0.110.0030.01015.36
7.0.100.0060.00815.45
7.0.90.0070.00715.59
7.0.80.0040.00815.40
7.0.70.0060.00915.48
7.0.60.0080.04417.75
7.0.50.0050.02716.78
7.0.40.0070.02516.65
7.0.30.0150.02816.90
7.0.20.0120.03416.81
7.0.10.0050.03616.76
7.0.00.0100.03816.80
5.6.400.0060.00914.73
5.6.390.0000.01514.63
5.6.380.0030.00814.46
5.6.370.0000.01314.76
5.6.360.0030.01414.34
5.6.350.0030.01014.47
5.6.340.0030.01014.52
5.6.330.0080.00814.34
5.6.320.0000.01614.77
5.6.310.0100.00314.40
5.6.300.0000.01714.50
5.6.290.0030.01014.37
5.6.280.0020.04117.65
5.6.270.0070.01014.18
5.6.260.0080.00814.41
5.6.250.0040.01214.40
5.6.240.0040.00814.24
5.6.230.0040.01214.54
5.6.220.0110.00614.35
5.6.210.0080.04317.53
5.6.200.0120.02016.29
5.6.190.0080.02517.57
5.6.180.0170.04517.47
5.6.170.0200.04017.46
5.6.160.0000.02717.37
5.6.150.0070.04316.30
5.6.140.0090.04216.39
5.6.130.0120.01816.48
5.6.120.0080.04217.59
5.6.110.0030.02817.71
5.6.100.0080.03817.66
5.6.90.0100.02317.77
5.6.80.0100.04017.31
5.6.70.0030.00614.15
5.6.60.0030.01314.24
5.6.50.0070.01014.14
5.6.40.0000.01014.35
5.6.30.0070.00314.40
5.6.20.0130.00314.62
5.6.10.0040.00714.37
5.6.00.0030.01014.58
5.5.380.0060.00914.29
5.5.370.0070.00714.15
5.5.360.0150.00014.43
5.5.350.0150.04517.44
5.5.340.0030.04616.25
5.5.330.0030.04917.25
5.5.320.0020.03717.35
5.5.310.0180.04217.35
5.5.300.0110.03016.15
5.5.290.0050.02416.14
5.5.280.0100.04217.64
5.5.270.0030.02917.69
5.5.260.0120.04017.42
5.5.250.0080.03617.48
5.5.240.0430.03017.29
5.5.230.0070.00414.61
5.5.220.0150.00314.22
5.5.210.0150.00314.31
5.5.200.0000.01314.38
5.5.190.0060.00614.20
5.5.180.0070.00714.09
5.5.170.0110.00014.17
5.5.160.0040.00814.44
5.5.150.0000.00814.34
5.5.140.0070.00714.25
5.5.130.0140.00014.52
5.5.120.0030.00614.41
5.5.110.0070.00714.53
5.5.100.0040.00714.32
5.5.90.0130.00014.33
5.5.80.0070.00713.92
5.5.70.0070.00714.14
5.5.60.0030.00714.29
5.5.50.0030.01214.40
5.5.40.0070.00714.44
5.5.30.0070.00713.89
5.5.20.0060.00314.16
5.5.10.0130.00014.04
5.5.00.0060.00614.01
5.4.450.2110.02415.82
5.4.440.2030.02615.78
5.4.430.1880.01615.83
5.4.420.1730.02215.74
5.4.410.1800.02615.74
5.4.400.1800.02015.67
5.4.390.1820.02315.63
5.4.380.2180.02615.59
5.4.370.1850.02215.53
5.4.360.1970.02015.53
5.4.350.2270.02015.60
5.4.340.2270.02015.62
5.4.330.0000.01312.11
5.4.320.1990.01915.53
5.4.310.2310.01815.48
5.4.300.2270.02315.67
5.4.290.2270.02015.60
5.4.280.2250.02715.65
5.4.270.1880.02315.55
5.4.260.1810.01515.63
5.4.250.2170.02415.54
5.4.240.1850.02015.64
5.4.230.1970.02115.59
5.4.220.2280.02515.58
5.4.210.1870.02415.59
5.4.200.1970.02015.59
5.4.190.1920.02215.58
5.4.180.1870.02015.48
5.4.170.1900.02315.62
5.4.160.1790.02615.57
5.4.150.2220.02215.65
5.4.140.2160.02014.31
5.4.130.2080.02014.19
5.4.120.1870.01914.28
5.4.110.1900.02514.33
5.4.100.2020.02014.33
5.4.90.1920.02214.23
5.4.80.1980.02014.23
5.4.70.2010.02014.24
5.4.60.2220.01714.32
5.4.50.1950.01814.13
5.4.40.2110.01814.31
5.4.30.2210.01814.33
5.4.20.1990.02114.33
5.4.10.1750.02214.13
5.4.00.2380.02213.96
5.3.290.2280.02313.34
5.3.280.2220.02513.30
5.3.270.1900.02113.44
5.3.260.2000.02013.40
5.3.250.2310.02313.38
5.3.240.2170.02213.44
5.3.230.2150.02513.34
5.3.220.1700.02113.39
5.3.210.1820.02513.34
5.3.200.1870.01713.29
5.3.190.1830.01913.34
5.3.180.2110.01713.30
5.3.170.1910.01913.42
5.3.160.1970.02313.29
5.3.150.1780.02313.36
5.3.140.2240.01613.34
5.3.130.2170.01913.41
5.3.120.1750.02513.37
5.3.110.1880.02113.29
5.3.100.1940.02213.11
5.3.90.1770.02213.18
5.3.80.1800.01813.09
5.3.70.1870.02313.09
5.3.60.1930.01813.01
5.3.50.1880.02213.06
5.3.40.1800.01913.05
5.3.30.1600.02013.01
5.3.20.1870.02312.87
5.3.10.1890.02012.91
5.3.00.1780.01912.84
5.2.170.2870.03311.27
5.2.160.3200.03311.13
5.2.150.3170.03011.27
5.2.140.3470.02711.04
5.2.130.3300.03311.11
5.2.120.3330.03311.11
5.2.110.3230.02711.02
5.2.100.2570.03311.09
5.2.90.3200.02711.19
5.2.80.2600.03311.18
5.2.70.2730.03011.02
5.2.60.2600.02711.14
5.2.50.2770.03011.07
5.2.40.2370.03010.90
5.2.30.2230.02011.05
5.2.20.2330.03710.88
5.2.10.2100.02310.82
5.2.00.2470.02710.72
5.1.60.2230.0209.90
5.1.50.1870.02310.15
5.1.40.2170.0309.91
5.1.30.2070.02710.34
5.1.20.2370.02010.58
5.1.10.1800.02310.19
5.1.00.2330.02710.20
5.0.50.1330.0209.69
5.0.40.1500.0139.69
5.0.30.1370.0309.69
5.0.20.1600.0179.69
5.0.10.1630.0209.69
5.0.00.1200.0309.69
4.4.90.1070.0179.69
4.4.80.1030.0139.69
4.4.70.1130.0179.69
4.4.60.1000.0139.69
4.4.50.1530.0139.69
4.4.40.1170.0239.69
4.4.30.0930.0109.69
4.4.20.1200.0179.69
4.4.10.1430.0179.69
4.4.00.1530.0309.69
4.3.110.1400.0179.69
4.3.100.1500.0179.69
4.3.90.1430.0139.69
4.3.80.1400.0239.69
4.3.70.0600.0279.69
4.3.60.1800.0139.69
4.3.50.1700.0179.69
4.3.40.1500.0279.69
4.3.30.0830.0209.69
4.3.20.0900.0209.70
4.3.10.0970.0179.70
4.3.00.0970.0239.72

preferences:
48.66 ms | 401 KiB | 5 Q