3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Name\Space { function bar() { echo "bar over here!"; } } namespace Some\Other { class Foo { function baz() { $this->bar = function() {echo 'im a callable bar';}; } } } namespace { $foo = new Some\Other\Foo(); $foo->baz(); $foo->bar(); }

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.40.0090.00918.78
8.3.30.0140.00719.22
8.3.20.0000.00820.39
8.3.10.0080.00023.63
8.3.00.0030.00620.77
8.2.170.0170.00322.96
8.2.160.0170.00320.38
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0090.00926.16
8.2.120.0040.00419.25
8.2.110.0040.00422.02
8.2.100.0040.00718.16
8.2.90.0000.00819.02
8.2.80.0030.00617.97
8.2.70.0080.00017.75
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0000.00819.88
8.2.30.0040.00418.31
8.2.20.0040.00417.67
8.2.10.0040.00417.98
8.2.00.0000.00717.81
8.1.270.0000.00823.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.86
8.1.230.0060.00619.06
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.35
8.1.180.0030.00818.10
8.1.170.0040.00418.59
8.1.160.0000.00721.99
8.1.150.0020.00518.60
8.1.140.0030.00617.41
8.1.130.0030.00317.77
8.1.120.0000.00717.51
8.1.110.0060.00317.51
8.1.100.0000.00817.45
8.1.90.0030.00317.36
8.1.80.0000.00717.35
8.1.70.0020.00517.32
8.1.60.0000.00717.48
8.1.50.0040.00417.54
8.1.40.0070.00017.56
8.1.30.0000.00817.73
8.1.20.0000.00817.59
8.1.10.0000.00817.50
8.1.00.0040.00417.43
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0000.00818.38
8.0.270.0070.00017.20
8.0.260.0030.00317.27
8.0.250.0040.00416.87
8.0.240.0070.00016.89
8.0.230.0000.00716.85
8.0.220.0030.00316.90
8.0.210.0060.00016.86
8.0.200.0030.00316.91
8.0.190.0030.00616.92
8.0.180.0080.00016.88
8.0.170.0000.00817.04
8.0.160.0070.00016.91
8.0.150.0070.00016.90
8.0.140.0070.00316.91
8.0.130.0030.00313.43
8.0.120.0030.00516.96
8.0.110.0040.00416.81
8.0.100.0000.00716.88
8.0.90.0060.00316.96
8.0.80.0180.00316.89
8.0.70.0040.00416.86
8.0.60.0000.00717.03
8.0.50.0000.00816.77
8.0.30.0110.00716.98
8.0.20.0170.00917.40
8.0.10.0000.00717.04
8.0.00.0100.01016.92
7.4.330.0000.00615.15
7.4.320.0000.00716.60
7.4.300.0000.00616.46
7.4.290.0030.00316.64
7.4.280.0000.00716.61
7.4.270.0050.00316.65
7.4.260.0030.00716.64
7.4.250.0040.00416.60
7.4.240.0010.00616.51
7.4.230.0000.00716.59
7.4.220.0070.01016.69
7.4.210.0030.01016.59
7.4.200.0000.00716.72
7.4.160.0130.01016.50
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0070.01016.52
7.4.120.0090.00916.58
7.4.110.0100.00716.37
7.4.100.0120.00616.58
7.4.90.0140.00516.47
7.4.80.0080.01819.39
7.4.70.0100.00716.68
7.4.60.0070.01116.61
7.4.50.0030.00516.66
7.4.40.0080.00816.40
7.4.30.0130.00316.54
7.4.10.0090.00615.04
7.4.00.0080.00814.89
7.3.330.0000.00613.15
7.3.320.0020.00213.39
7.3.310.0030.00516.43
7.3.300.0000.00716.24
7.3.290.0090.00616.37
7.3.280.0070.01016.37
7.3.270.0130.00617.40
7.3.260.0100.00716.40
7.3.250.0060.01316.38
7.3.240.0060.01116.31
7.3.230.0180.00016.39
7.3.210.0100.00716.36
7.3.200.0090.00819.39
7.3.190.0120.00816.60
7.3.180.0090.01016.61
7.3.170.0040.01116.35
7.3.160.0180.00316.63
7.3.130.0120.00414.85
7.3.120.0060.01014.80
7.3.110.0100.00714.71
7.3.100.0000.01815.00
7.3.90.0030.01214.88
7.3.80.0080.00414.75
7.3.70.0060.00614.57
7.3.60.0040.01114.52
7.3.50.0030.01014.56
7.3.40.0090.00614.89
7.3.30.0000.01114.80
7.3.20.0000.01516.50
7.3.10.0060.00716.70
7.3.00.0070.00816.53
7.2.330.0060.01616.45
7.2.320.0070.01416.43
7.2.310.0120.00416.41
7.2.300.0060.01116.68
7.2.290.0140.00616.75
7.2.260.0090.00615.09
7.2.250.0080.00815.29
7.2.240.0030.01514.87
7.2.230.0120.00314.91
7.2.220.0070.00715.13
7.2.210.0000.00915.02
7.2.200.0030.01315.00
7.2.190.0130.00314.98
7.2.180.0040.01114.95
7.2.170.0060.00314.80
7.2.160.0030.01015.12
7.2.150.0030.01516.75
7.2.140.0090.00916.78
7.2.130.0020.01216.80
7.2.120.0030.01216.90
7.2.110.0050.01016.82
7.2.100.0060.01016.80
7.2.90.0070.00916.84
7.2.80.0020.01216.96
7.2.70.0050.01016.86
7.2.60.0050.00916.78
7.2.50.0080.00816.85
7.2.40.0080.00317.01
7.2.30.0070.00916.82
7.2.20.0030.00916.73
7.2.10.0060.01016.98
7.2.00.0060.00717.59
7.1.330.0110.00715.64
7.1.320.0060.00915.70
7.1.310.0040.01115.52
7.1.300.0070.00315.67
7.1.290.0030.01215.35
7.1.280.0030.00715.39
7.1.270.0100.00615.62
7.1.260.0040.00415.48
7.1.250.0050.00715.77
7.1.240.0100.01015.55
7.1.230.0070.00715.52
7.1.220.0150.00415.89
7.1.210.0000.00915.62
7.1.200.0080.00615.69
7.1.190.0000.01015.54
7.1.180.0090.00315.73
7.1.170.0070.00715.60
7.1.160.0100.00615.68
7.1.150.0070.01015.75
7.1.140.0100.00015.70
7.1.130.0070.00715.84
7.1.120.0070.01315.77
7.1.110.0070.01315.70
7.1.100.0040.00916.57
7.1.90.0030.01315.72
7.1.80.0060.00915.36
7.1.70.0030.00816.43
7.1.60.0090.00817.67
7.1.50.0050.01316.27
7.1.40.0100.00315.79
7.1.30.0080.00415.42
7.1.20.0040.01215.22
7.1.10.0110.00015.64
7.1.00.0050.04419.00
7.0.330.0040.00715.26
7.0.320.0090.00615.07
7.0.310.0140.00015.12
7.0.300.0110.00315.39
7.0.290.0000.00815.40
7.0.280.0030.01015.36
7.0.270.0150.00215.32
7.0.260.0060.00915.24
7.0.250.0120.00615.35
7.0.240.0080.00415.04
7.0.230.0000.01415.31
7.0.220.0070.00715.39
7.0.210.0040.00815.21
7.0.200.0050.00715.78
7.0.190.0030.00715.09
7.0.180.0080.00415.11
7.0.170.0060.00315.34
7.0.160.0000.01115.18
7.0.150.0000.01014.86
7.0.140.0020.04318.72
7.0.130.0070.00715.40
7.0.120.0060.00314.94
7.0.110.0000.01115.40
7.0.100.0030.01015.42
7.0.90.0040.00915.38
7.0.80.0030.00715.10
7.0.70.0100.00715.37
7.0.60.0030.02317.70
7.0.50.0070.04216.68
7.0.40.0020.04716.76
7.0.30.0280.02516.95
7.0.20.0170.03216.78
7.0.10.0090.04216.71
7.0.00.0050.04316.89
5.6.400.0070.00714.61
5.6.390.0070.00714.55
5.6.380.0000.01114.23
5.6.370.0030.01014.41
5.6.360.0030.01214.30
5.6.350.0000.01014.61
5.6.340.0040.00714.54
5.6.330.0140.00714.70
5.6.320.0060.01114.25
5.6.310.0060.00614.17
5.6.300.0070.00314.40
5.6.290.0070.00714.28
5.6.280.0050.04017.72
5.6.270.0040.00414.57
5.6.260.0060.00614.38
5.6.250.0060.00814.11
5.6.240.0040.00914.23
5.6.230.0000.01114.33
5.6.220.0150.00014.10
5.6.210.0080.05017.48
5.6.200.0070.04116.40
5.6.190.0070.02817.28
5.6.180.0210.03817.32
5.6.170.0370.03817.51
5.6.160.0110.04017.54
5.6.150.0120.02916.21
5.6.140.0110.03616.41
5.6.130.0070.02016.20
5.6.120.0070.03617.69
5.6.110.0100.04017.83
5.6.100.0030.02917.58
5.6.90.0030.04717.59
5.6.80.0100.04317.46
5.6.70.2350.02517.33
5.6.60.0030.01014.21
5.6.50.0030.01014.21
5.6.40.0070.00314.31
5.6.30.0000.01313.95
5.6.20.0000.01114.28
5.6.10.0090.00614.21
5.6.00.0030.01014.38
5.5.380.0060.00614.21
5.5.370.0030.01014.45
5.5.360.0060.00614.05
5.5.350.0050.02617.42
5.5.340.0070.02516.30
5.5.330.0060.02817.47
5.5.320.0150.04817.24
5.5.310.0150.02517.35
5.5.300.0050.04216.01
5.5.290.0050.02316.22
5.5.280.0130.04317.60
5.5.270.0060.02217.46
5.5.260.0160.04117.66
5.5.250.0050.04717.47
5.5.240.0020.04817.25
5.5.230.0070.00714.52
5.5.220.0110.00314.34
5.5.210.0030.01214.15
5.5.200.0030.01314.10
5.5.190.0090.00314.35
5.5.180.0000.01214.07
5.5.170.0090.00613.98
5.5.160.0000.01514.00
5.5.150.0030.01314.05
5.5.140.0080.00613.93
5.5.130.0080.00814.45
5.5.120.0100.00314.19
5.5.110.0100.00514.28
5.5.100.0040.01514.35
5.5.90.0140.00514.18
5.5.80.0040.01213.82
5.5.70.0100.01014.42
5.5.60.0070.00713.96
5.5.50.0030.01414.34
5.5.40.0000.01114.25
5.5.30.0040.01114.07
5.5.20.0060.00914.12
5.5.10.0050.00314.23
5.5.00.0030.00613.94
5.4.450.0560.02114.99
5.4.440.0080.02224.96
5.4.430.0270.02423.56
5.4.420.0050.02823.46
5.4.410.0080.02823.56
5.4.400.0110.02623.50
5.4.390.0190.02323.34
5.4.380.0220.02814.94
5.4.370.0170.02814.89
5.4.360.0190.02714.84
5.4.350.0150.02714.75
5.4.340.0150.03014.65
5.4.330.0100.00211.11
5.4.320.0060.02111.69
5.4.310.0040.02211.74
5.4.300.0080.01911.81
5.4.290.0050.02311.59
5.4.280.0080.01911.58
5.4.270.0080.01811.70
5.4.260.0070.02111.78
5.4.250.0080.02211.69
5.4.240.0050.02411.71
5.4.230.0060.02011.60
5.4.220.0060.02211.64
5.4.210.0040.02211.55
5.4.200.0040.02411.69
5.4.190.0040.02011.49
5.4.180.0060.02211.61
5.4.170.0040.02311.66
5.4.160.0060.02011.59
5.4.150.0040.02311.70
5.4.140.0030.02211.58
5.4.130.0060.02011.57
5.4.120.0040.02311.57
5.4.110.0040.02011.33
5.4.100.0080.01911.37
5.4.90.0080.01811.50
5.4.80.0060.02011.50
5.4.70.0060.01911.40
5.4.60.0050.02111.56
5.4.50.0020.02511.52
5.4.40.0070.01911.55
5.4.30.0070.01711.54
5.4.20.0040.02111.52
5.4.10.0050.02011.56
5.4.00.0070.02011.20
5.3.290.0060.02211.62
5.3.280.0070.02311.60
5.3.270.0050.02111.69
5.3.260.0060.02011.70
5.3.250.0020.02211.76
5.3.240.0040.02211.58
5.3.230.0050.02111.58
5.3.220.0020.02411.47
5.3.210.0040.02411.59
5.3.200.0050.02211.58
5.3.190.0040.02411.59
5.3.180.0050.02211.70
5.3.170.0040.01911.71
5.3.160.0070.02011.56
5.3.150.0060.02211.67
5.3.140.0030.02511.55
5.3.130.0040.02211.55
5.3.120.0060.02111.49
5.3.110.0020.02611.62
5.3.100.0070.01711.32
5.3.90.0040.02211.36
5.3.80.0040.02111.29
5.3.70.0020.02611.18
5.3.60.0060.02011.39
5.3.50.0050.01911.13
5.3.40.0060.02011.23
5.3.30.0050.02211.21
5.3.20.0050.02111.12
5.3.10.0040.02210.95
5.3.00.0050.02311.02
5.2.170.0050.0299.18
5.2.160.0030.0329.18
5.2.150.0050.0319.18
5.2.140.0090.0279.18
5.2.130.0050.0289.14
5.2.120.0070.0269.14
5.2.110.0060.0299.14
5.2.100.0030.0309.14
5.2.90.0060.0379.14
5.2.80.0050.0319.14
5.2.70.0050.0309.13
5.2.60.0070.0289.09
5.2.50.0040.0319.06
5.2.40.0040.0309.04
5.2.30.0010.0339.02
5.2.20.0060.0309.00
5.2.10.0040.0298.92
5.2.00.0050.0328.79
5.1.60.0050.0258.07
5.1.50.0040.0278.06
5.1.40.0030.0298.05
5.1.30.0070.0348.39
5.1.20.0040.0328.42
5.1.10.0070.0268.14
5.1.00.0050.0278.14
5.0.50.0030.0246.63
5.0.40.0080.0156.48
5.0.30.0040.0316.29
5.0.20.0060.0206.27
5.0.10.0050.0196.24
5.0.00.0020.0336.23
4.4.90.0050.0144.78
4.4.80.0050.0134.76
4.4.70.0020.0174.75
4.4.60.0050.0134.76
4.4.50.0050.0134.77
4.4.40.0010.0274.71
4.4.30.0030.0154.76
4.4.20.0020.0174.85
4.4.10.0030.0154.85
4.4.00.0010.0264.76
4.3.110.0030.0154.67
4.3.100.0040.0144.67
4.3.90.0030.0144.64
4.3.80.0030.0254.59
4.3.70.0000.0174.63
4.3.60.0040.0134.63
4.3.50.0020.0174.62
4.3.40.0040.0244.53
4.3.30.0040.0143.28
4.3.20.0020.0163.26
4.3.10.0030.0203.22
4.3.00.0030.01335.39

preferences:
50.97 ms | 400 KiB | 5 Q