3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo; class Bar { public static function hello() { echo "Hello"; } } namespace Bar; class Baz { public function hello() { echo \Foo\Bar::hello(); } } $baz = new Baz(); $baz->hello();

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.80.0030.00616.50
8.3.70.0110.00418.18
8.3.60.0210.00018.43
8.3.50.0090.01021.87
8.3.40.0120.00318.51
8.3.30.0110.00419.04
8.3.20.0070.00020.38
8.3.10.0030.00623.65
8.3.00.0080.00019.06
8.2.200.0060.00316.50
8.2.190.0130.01016.58
8.2.180.0130.00618.20
8.2.170.0070.00722.96
8.2.160.0070.00722.28
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0030.00626.16
8.2.120.0000.00720.96
8.2.110.0060.00322.17
8.2.100.0070.00319.23
8.2.90.0030.00719.05
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0000.00818.15
8.2.30.0000.00718.05
8.2.20.0040.00417.58
8.2.10.0040.00418.04
8.2.00.0040.00417.51
8.1.290.0090.00330.84
8.1.280.0070.01025.92
8.1.270.0060.01322.08
8.1.260.0030.00526.35
8.1.250.0080.00028.09
8.1.240.0040.00423.78
8.1.230.0070.00319.15
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0120.00017.00
8.1.190.0070.00017.10
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0030.00521.95
8.1.150.0040.00418.73
8.1.140.0040.00419.08
8.1.130.0030.00317.72
8.1.120.0000.00817.41
8.1.110.0030.00617.36
8.1.100.0000.00717.39
8.1.90.0070.00017.24
8.1.80.0000.00717.37
8.1.70.0000.00717.28
8.1.60.0000.01017.59
8.1.50.0040.00417.44
8.1.40.0050.00317.38
8.1.30.0040.00417.66
8.1.20.0000.00817.60
8.1.10.0040.00417.47
8.1.00.0070.00017.51
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0020.00518.44
8.0.270.0030.00317.25
8.0.260.0000.00717.25
8.0.250.0030.00816.92
8.0.240.0070.00016.93
8.0.230.0040.00416.91
8.0.220.0030.00316.69
8.0.210.0000.00716.85
8.0.200.0000.00916.77
8.0.190.0000.00716.75
8.0.180.0040.00416.84
8.0.170.0000.00816.73
8.0.160.0040.00416.81
8.0.150.0030.00316.68
8.0.140.0000.00716.76
8.0.130.0000.00613.17
8.0.120.0070.00016.69
8.0.110.0000.00716.73
8.0.100.0040.00416.83
8.0.90.0040.00416.71
8.0.80.0100.00716.78
8.0.70.0070.00016.79
8.0.60.0030.00516.64
8.0.50.0000.00716.85
8.0.30.0120.00716.99
8.0.20.0120.00817.40
8.0.10.0040.00417.05
8.0.00.0140.00516.72
7.4.330.0050.00015.03
7.4.320.0030.00316.53
7.4.300.0000.00616.58
7.4.290.0000.00716.52
7.4.280.0030.00516.49
7.4.270.0040.00416.54
7.4.260.0100.00016.57
7.4.250.0040.00416.60
7.4.240.0030.00316.61
7.4.230.0000.00716.48
7.4.220.0120.00616.59
7.4.210.0130.00716.66
7.4.200.0050.00316.61
7.4.160.0060.00916.36
7.4.150.0110.01417.40
7.4.140.0120.01017.86
7.4.130.0060.01116.47
7.4.120.0090.00816.27
7.4.110.0070.01616.37
7.4.100.0150.00416.44
7.4.90.0070.01116.50
7.4.80.0120.00919.39
7.4.70.0130.00316.48
7.4.60.0070.01016.53
7.4.50.0000.00816.33
7.4.40.0070.01116.33
7.4.30.0040.01316.49
7.4.00.0110.00514.82
7.3.330.0000.00513.24
7.3.320.0030.00313.13
7.3.310.0050.00216.25
7.3.300.0030.00316.24
7.3.290.0090.00516.24
7.3.280.0120.00616.22
7.3.270.0100.00717.40
7.3.260.0170.00016.48
7.3.250.0090.00816.22
7.3.240.0030.01316.15
7.3.230.0090.00916.51
7.3.210.0070.01416.46
7.3.200.0060.01119.39
7.3.190.0030.01316.27
7.3.180.0090.00616.21
7.3.170.0160.00616.27
7.3.160.0120.00316.41
7.3.120.0070.01214.87
7.3.110.0040.01214.81
7.3.100.0090.00914.54
7.3.90.0100.00614.70
7.3.80.0030.00814.86
7.3.70.0020.00914.71
7.3.60.0040.00714.78
7.3.50.0090.00614.92
7.3.40.0090.00714.69
7.3.30.0070.00514.52
7.3.20.0010.00716.60
7.3.10.0080.00316.57
7.3.00.0060.00616.57
7.2.330.0060.01616.65
7.2.320.0070.01116.32
7.2.310.0150.00516.72
7.2.300.0100.01316.49
7.2.290.0110.00616.24
7.2.250.0090.01114.96
7.2.240.0070.01214.96
7.2.230.0070.00814.72
7.2.220.0060.00915.14
7.2.210.0080.01114.73
7.2.200.0050.00614.80
7.2.190.0040.00714.70
7.2.180.0030.01015.04
7.2.170.0060.00815.01
7.2.160.0030.01014.91
7.2.150.0060.00316.80
7.2.140.0070.00716.78
7.2.130.0080.00416.80
7.2.120.0030.01016.93
7.2.110.0030.00916.99
7.2.100.0090.00616.83
7.2.90.0030.01316.80
7.2.80.0050.00816.88
7.2.70.0040.00816.68
7.2.60.0020.01316.97
7.2.50.0060.00916.66
7.2.40.0000.01416.86
7.2.30.0070.00716.90
7.2.20.0000.01116.73
7.2.10.0030.00716.85
7.2.00.0030.00818.10
7.1.330.0030.01115.67
7.1.320.0060.01115.45
7.1.310.0100.00215.57
7.1.300.0020.01115.68
7.1.290.0050.00815.52
7.1.280.0070.00515.45
7.1.270.0060.00815.59
7.1.260.0070.00715.60
7.1.250.0100.00015.66
7.1.240.0030.00915.35
7.1.230.0110.00315.41
7.1.220.0060.00615.80
7.1.210.0100.00715.79
7.1.200.0090.00315.57
7.1.190.0000.01415.81
7.1.180.0090.00315.64
7.1.170.0030.01015.46
7.1.160.0000.01715.64
7.1.150.0080.00615.75
7.1.140.0000.01415.43
7.1.130.0000.01215.63
7.1.120.0000.00815.52
7.1.110.0040.00715.66
7.1.100.0040.00516.91
7.1.90.0000.01115.76
7.1.80.0030.01015.49
7.1.70.0040.00616.27
7.1.60.0060.01117.44
7.1.50.0040.01316.28
7.1.40.0000.01315.30
7.1.30.0080.00815.27
7.1.20.0070.01015.35
7.1.10.0060.00915.40
7.1.00.0060.04019.00
7.0.330.0040.01115.33
7.0.320.0040.01215.37
7.0.310.0040.00715.08
7.0.300.0050.00515.21
7.0.290.0000.00815.38
7.0.280.0100.00315.35
7.0.270.0070.00315.35
7.0.260.0030.01015.38
7.0.250.0070.00715.18
7.0.240.0100.00615.33
7.0.230.0080.00415.14
7.0.220.0060.00315.56
7.0.210.0000.01315.36
7.0.200.0020.01016.12
7.0.190.0060.01015.16
7.0.180.0030.01315.35
7.0.170.0070.00715.30
7.0.160.0050.01115.21
7.0.150.0100.00315.12
7.0.140.0030.03018.63
7.0.130.0000.01215.26
7.0.120.0150.00015.06
7.0.110.0050.00515.16
7.0.100.0030.00715.09
7.0.90.0090.00315.30
7.0.80.0080.00415.30
7.0.70.0030.01015.34
7.0.60.0080.03217.59
7.0.50.0020.03116.60
7.0.40.0050.02316.64
7.0.30.0180.02716.90
7.0.20.0150.02016.70
7.0.10.0070.05016.85
7.0.00.0050.02816.75
5.6.400.0080.00314.41
5.6.390.0060.00614.43
5.6.380.0100.00613.98
5.6.370.0030.01014.39
5.6.360.0070.00414.27
5.6.350.0040.00814.31
5.6.340.0060.00814.32
5.6.330.0060.00614.14
5.6.320.0070.00714.27
5.6.310.0070.00714.34
5.6.300.0130.00314.60
5.6.290.0060.00313.99
5.6.280.0050.03817.62
5.6.270.0120.00314.24
5.6.260.0060.00913.99
5.6.250.0030.01314.45
5.6.240.0060.00614.28
5.6.230.0000.01214.46
5.6.220.0030.01014.13
5.6.210.0140.03517.58
5.6.200.0070.04216.19
5.6.190.0050.02517.46
5.6.180.0110.02317.38
5.6.170.0160.02617.68
5.6.160.0070.04517.51
5.6.150.0080.04016.26
5.6.140.0100.03516.21
5.6.130.0030.03716.22
5.6.120.0070.04717.64
5.6.110.0090.04317.69
5.6.100.0080.03817.66
5.6.90.0080.03817.59
5.6.80.0020.04817.31
5.6.70.0030.00714.18
5.6.60.0040.00714.23
5.6.50.0000.01614.39
5.6.40.0030.00714.10
5.6.30.0040.01114.10
5.6.20.0030.00914.21
5.6.10.0060.00914.09
5.6.00.0110.00014.37
5.5.380.0060.00314.24
5.5.370.0060.00614.37
5.5.360.0100.00314.11
5.5.350.0070.04417.28
5.5.340.0050.02516.20
5.5.330.0050.04717.38
5.5.320.0230.02017.40
5.5.310.0130.02117.17
5.5.300.0050.04116.27
5.5.290.0050.04816.01
5.5.280.0120.02817.54
5.5.270.0080.04317.62
5.5.260.0060.02017.57
5.5.250.0050.04317.50
5.5.240.2160.02017.18
5.5.230.0000.01014.03
5.5.220.0060.00313.98
5.5.210.0000.01214.12
5.5.200.0040.00814.09
5.5.190.0070.00713.96
5.5.180.0060.00914.26
5.5.170.0070.00413.85
5.5.160.0000.00914.27
5.5.150.0070.00414.10
5.5.140.0040.01114.11
5.5.130.0140.00414.09
5.5.120.0060.00314.29
5.5.110.0060.00914.36
5.5.100.0040.00714.10
5.5.90.0100.00314.00
5.5.80.0060.00914.36
5.5.70.0100.00314.11
5.5.60.0060.00314.19
5.5.50.0030.00614.06
5.5.40.0080.00814.01
5.5.30.0030.01014.34
5.5.20.0090.00614.26
5.5.10.0060.00913.91
5.5.00.0030.00714.21
5.4.450.0030.02616.13
5.4.440.0030.03916.15
5.4.430.0030.02515.93
5.4.420.0020.02416.12
5.4.410.0020.03015.94
5.4.400.0050.02315.96
5.4.390.0030.03715.96
5.4.380.0040.04015.80
5.4.370.0050.04215.77
5.4.360.0000.03215.76
5.4.350.0010.04315.97
5.4.340.0080.02915.96
5.4.330.0040.00712.68
5.4.320.0030.02315.78
5.4.310.0060.02215.88
5.4.300.0020.04315.83
5.4.290.0050.03115.77
5.4.280.0110.03815.88
5.4.270.0050.03915.81
5.4.260.0060.04115.91
5.4.250.0050.02715.96
5.4.240.0090.03915.77
5.4.230.0050.02015.96
5.4.220.0070.04015.96
5.4.210.0020.03415.91
5.4.200.0050.02515.91
5.4.190.0030.02315.77
5.4.180.0050.04015.88
5.4.170.0080.02615.89
5.4.160.0060.02315.82
5.4.150.0070.03915.76
5.4.140.0060.04014.55
5.4.130.0030.02314.51
5.4.120.0100.03414.55
5.4.110.0030.04214.60
5.4.100.0070.02814.60
5.4.90.0040.02514.58
5.4.80.0030.02214.59
5.4.70.0120.03514.69
5.4.60.0020.02514.53
5.4.50.0070.03714.60
5.4.40.0030.02214.47
5.4.30.0070.02014.59
5.4.20.0050.03914.54
5.4.10.0040.03714.46
5.4.00.0050.03914.21
5.3.290.0100.03314.71
5.3.280.0030.07714.61
5.3.270.0130.06714.63
5.3.260.0130.07014.50
5.3.250.0170.06014.64
5.3.240.0030.05314.52
5.3.230.0100.07314.64
5.3.220.0100.07014.62
5.3.210.0030.05014.63
5.3.200.0130.05714.57
5.3.190.0130.03014.56
5.3.180.0070.04314.48
5.3.170.0100.03014.62
5.3.160.0000.04314.60
5.3.150.0030.07314.59
5.3.140.0130.06714.61
5.3.130.0070.07714.58
5.3.120.0170.06014.69
5.3.110.0000.07014.44
5.3.100.0100.07014.19
5.3.90.0070.07714.02
5.3.80.0100.07013.97
5.3.70.0030.07714.05
5.3.60.0100.07014.01
5.3.50.0200.03013.94
5.3.40.0030.06313.99
5.3.30.0200.04714.06
5.3.20.0000.07313.85
5.3.10.0030.03713.65
5.3.00.0070.06013.65
5.2.170.0030.03311.04
5.2.160.0030.07011.09
5.2.150.0070.06011.09
5.2.140.0070.02711.02
5.2.130.0000.03711.05
5.2.120.0000.03010.96
5.2.110.0100.05311.04
5.2.100.0070.06011.07
5.2.90.0030.06711.09
5.2.80.0000.04011.04
5.2.70.0070.06311.09
5.2.60.0000.03310.92
5.2.50.0000.07010.95
5.2.40.0100.05710.81
5.2.30.0070.04010.95
5.2.20.0030.06710.89
5.2.10.0070.04310.85
5.2.00.0070.06010.72
5.1.60.0100.0339.96
5.1.50.0030.0409.97
5.1.40.0030.0539.93
5.1.30.0130.04710.38
5.1.20.0030.05310.32
5.1.10.0000.0479.97
5.1.00.0000.03710.07
5.0.50.0070.0439.40
5.0.40.0000.0239.40
5.0.30.0000.0309.40
5.0.20.0000.0209.40
5.0.10.0000.0239.40
5.0.00.0030.0579.40
4.4.90.0000.0179.40
4.4.80.0030.0379.40
4.4.70.0030.0339.40
4.4.60.0030.0239.40
4.4.50.0000.0409.40
4.4.40.0070.0379.40
4.4.30.0000.0379.40
4.4.20.0030.0279.40
4.4.10.0000.0309.40
4.4.00.0000.0479.40
4.3.110.0070.0179.40
4.3.100.0030.0309.40
4.3.90.0000.0279.40
4.3.80.0000.0539.40
4.3.70.0030.0339.40
4.3.60.0030.0209.40
4.3.50.0000.0379.40
4.3.40.0100.0479.40
4.3.30.0000.0209.40
4.3.20.0000.0279.40
4.3.10.0000.0279.40
4.3.00.0070.0279.40

preferences:
57.75 ms | 401 KiB | 5 Q