3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace bar { class baz { public function e() {echo 'hi';} } } namespace foo { use bar; $obj = new bar\baz; $obj->e(); }

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.00416.75
8.3.50.0150.00522.12
8.3.40.0070.00718.71
8.3.30.0070.01318.97
8.3.20.0050.00220.21
8.3.10.0000.00721.77
8.3.00.0000.00819.13
8.2.180.0090.00918.41
8.2.170.0040.01122.96
8.2.160.0100.00320.24
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0050.00219.54
8.2.110.0060.00319.29
8.2.100.0070.00417.75
8.2.90.0000.00819.06
8.2.80.0040.00417.97
8.2.70.0050.00317.63
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0030.00518.22
8.2.30.0050.00217.86
8.2.20.0040.00417.67
8.2.10.0050.00217.89
8.2.00.0000.00817.67
8.1.280.0120.00325.92
8.1.270.0040.00418.74
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0000.00923.98
8.1.230.0070.00418.79
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0100.00017.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0000.00820.30
8.1.160.0030.00321.99
8.1.150.0080.00018.69
8.1.140.0040.00417.37
8.1.130.0000.00617.72
8.1.120.0020.00517.38
8.1.110.0030.00617.39
8.1.100.0080.00017.24
8.1.90.0050.00317.40
8.1.80.0040.00417.40
8.1.70.0030.00317.37
8.1.60.0040.00417.53
8.1.50.0040.00417.55
8.1.40.0000.00717.56
8.1.30.0040.00417.55
8.1.20.0040.00417.56
8.1.10.0000.00817.56
8.1.00.0050.00317.35
8.0.300.0080.00018.77
8.0.290.0030.00316.75
8.0.280.0040.00418.32
8.0.270.0040.00417.30
8.0.260.0050.00217.12
8.0.250.0000.00716.91
8.0.240.0000.00716.87
8.0.230.0020.00516.81
8.0.220.0070.00016.77
8.0.210.0040.00416.71
8.0.200.0030.00316.75
8.0.190.0030.00516.89
8.0.180.0070.00016.84
8.0.170.0000.00816.84
8.0.160.0000.00816.69
8.0.150.0030.00316.72
8.0.140.0040.00416.77
8.0.130.0030.00313.24
8.0.120.0060.00316.79
8.0.110.0000.00716.80
8.0.100.0040.00416.77
8.0.90.0050.00216.78
8.0.80.0030.01316.81
8.0.70.0020.00516.70
8.0.60.0040.00316.63
8.0.50.0040.00416.77
8.0.30.0150.01117.20
8.0.20.0100.01217.40
8.0.10.0070.00016.91
8.0.00.0060.01116.76
7.4.330.0020.00215.03
7.4.320.0030.00316.52
7.4.300.0000.00916.63
7.4.290.0030.00316.48
7.4.280.0000.00716.53
7.4.270.0050.00316.49
7.4.260.0070.00016.51
7.4.250.0000.00716.41
7.4.240.0020.00516.57
7.4.230.0030.00316.62
7.4.220.0130.00716.46
7.4.210.0080.00716.50
7.4.200.0030.00316.29
7.4.160.0080.01216.50
7.4.150.0100.00717.40
7.4.140.0080.01117.86
7.4.130.0070.01216.43
7.4.120.0100.00816.57
7.4.110.0040.01216.41
7.4.100.0070.01016.62
7.4.90.0080.00816.38
7.4.80.0100.00619.39
7.4.70.0090.01016.55
7.4.60.0060.00916.55
7.4.50.0040.00016.52
7.4.40.0110.00616.53
7.4.30.0160.00316.35
7.4.00.0070.01015.08
7.3.330.0020.00213.05
7.3.320.0080.00713.02
7.3.310.0040.00416.27
7.3.300.0030.00316.10
7.3.290.0000.00616.23
7.3.280.0060.01016.24
7.3.270.0090.00917.40
7.3.260.0190.00316.25
7.3.250.0120.00516.38
7.3.240.0090.00616.16
7.3.230.0070.01016.51
7.3.210.0140.00316.39
7.3.200.0060.01019.39
7.3.190.0130.00316.52
7.3.180.0100.00716.38
7.3.170.0090.00916.32
7.3.160.0150.00016.54
7.3.10.0000.01216.68
7.3.00.0000.01116.52
7.2.330.0100.00616.37
7.2.320.0090.00916.68
7.2.310.0060.01116.68
7.2.300.0150.00716.73
7.2.290.0100.00716.30
7.2.130.0070.00716.94
7.2.120.0070.01116.79
7.2.110.0090.00616.74
7.2.100.0070.00716.85
7.2.90.0070.00316.86
7.2.80.0110.00416.89
7.2.70.0050.00516.82
7.2.60.0090.00316.66
7.2.50.0000.01516.79
7.2.40.0030.00916.99
7.2.30.0060.00616.97
7.2.20.0090.00617.00
7.2.10.0070.00716.96
7.2.00.0050.01018.19
7.1.250.0100.00315.66
7.1.100.0060.00617.93
7.1.70.0030.00916.74
7.1.60.0120.00919.46
7.1.50.0280.01134.82
7.1.00.0100.07022.45
7.0.200.0070.00016.60
7.0.140.0030.03722.11
7.0.60.0100.07320.06
7.0.50.0070.05717.85
7.0.40.0070.09020.41
7.0.30.0070.04720.07
7.0.20.0200.09020.11
7.0.10.0230.06320.12
7.0.00.0030.08720.24
5.6.280.0070.07021.15
5.6.210.0030.04020.62
5.6.200.0000.04318.23
5.6.190.0100.04020.49
5.6.180.0200.06720.42
5.6.170.0270.06020.54
5.6.160.0070.04020.54
5.6.150.0100.07318.19
5.6.140.0000.04718.20
5.6.130.0030.04318.26
5.6.120.0070.05020.98
5.6.110.0030.07020.89
5.6.100.0100.06021.08
5.6.90.0070.08720.98
5.6.80.0070.06320.43
5.6.70.0370.07020.40
5.5.350.0030.06720.47
5.5.340.0030.04017.98
5.5.330.0170.07320.27
5.5.320.0070.05320.44
5.5.310.0330.08020.27
5.5.300.0100.07717.92
5.5.290.0070.04018.07
5.5.280.0100.06720.85
5.5.270.0000.05020.89
5.5.260.0200.07020.89
5.5.250.0100.08020.70
5.5.240.0070.07020.37
5.4.450.0130.05719.55
5.4.440.0730.06719.33
5.4.430.0130.05719.30
5.4.420.0670.07019.46
5.4.410.0470.06319.17
5.4.400.0130.06018.54
5.4.390.0200.05718.75
5.4.380.0230.05018.61
5.4.370.0170.05718.84
5.4.360.0100.05318.53
5.4.350.0170.06718.63
5.4.340.0130.06318.47
5.4.320.0230.05018.76
5.4.310.0170.05018.72
5.4.300.0270.05018.55
5.4.290.0130.05718.58
5.4.280.0170.06318.62
5.4.270.0170.05018.83
5.4.260.0170.05018.83
5.4.250.0200.05018.46
5.4.240.0130.05718.56
5.4.230.0200.04718.48
5.4.220.0170.05018.62
5.4.210.0230.04318.83
5.4.200.0230.06016.68
5.4.190.0200.06318.48
5.4.180.0200.07018.72
5.4.170.0170.06018.51
5.4.160.0230.05318.72
5.4.150.0230.05018.54
5.4.140.0170.05716.24
5.4.130.0370.04716.33
5.4.120.0170.06016.29
5.4.110.0170.05316.24
5.4.100.0270.05316.23
5.4.90.0130.07716.23
5.4.80.0130.06016.40
5.4.70.0230.05316.26
5.4.60.0130.05316.27
5.4.50.0170.05316.40
5.4.40.0130.06016.26
5.4.30.0270.04316.23
5.4.20.0230.06016.28
5.4.10.0130.06316.14
5.4.00.0130.05715.88
5.3.290.0100.07314.83
5.3.280.0170.06014.63
5.3.270.0200.07714.64
5.3.260.0230.04714.64
5.3.250.0130.05714.79
5.3.240.0230.05314.70
5.3.230.0230.04714.57
5.3.220.0100.06014.76
5.3.210.0130.06314.61
5.3.200.0170.05014.61
5.3.190.0070.07714.67
5.3.180.0200.05714.73
5.3.170.0100.06014.50
5.3.160.0170.08014.65
5.3.150.0370.05014.68
5.3.140.0130.05314.55
5.3.130.0030.06714.54
5.3.120.0130.07314.63
5.3.110.0370.04014.72
5.3.100.0200.05314.05
5.3.90.0470.04714.01
5.3.80.0330.04014.06
5.3.70.0330.04314.08
5.3.60.0170.06714.09
5.3.50.0230.05313.98
5.3.40.0200.04713.96
5.3.30.0130.05014.04
5.3.20.0170.05313.72
5.3.10.0130.06713.78
5.3.00.0170.05013.62
5.2.170.0070.05711.18
5.2.160.0200.06311.10
5.2.150.0270.02711.15
5.2.140.0130.04311.11
5.2.130.0170.04011.11
5.2.120.0130.03711.16
5.2.110.0100.04011.08
5.2.100.0100.04011.02
5.2.90.0130.03711.03
5.2.80.0370.03711.13
5.2.70.0070.05011.04
5.2.60.0100.04310.99
5.2.50.0170.03711.15
5.2.40.0100.04010.95
5.2.30.0100.05311.13
5.2.20.0200.03310.92
5.2.10.0100.04010.95
5.2.00.0030.05010.71
5.1.60.0130.0309.97
5.1.50.0130.03010.04
5.1.40.0030.0439.95
5.1.30.0100.03710.48
5.1.20.0130.05010.40
5.1.10.0100.04010.13
5.1.00.0170.03010.08
5.0.50.0030.0338.64
5.0.40.0070.0308.47
5.0.30.0100.0538.36
5.0.20.0130.0308.19
5.0.10.0130.0338.30
5.0.00.0100.0438.23
4.4.90.0100.0175.92
4.4.80.0130.0175.88
4.4.70.0030.0235.85
4.4.60.0030.0335.86
4.4.50.0130.0235.91
4.4.40.0070.0375.87
4.4.30.0070.0205.87
4.4.20.0000.0275.88
4.4.10.0100.0205.91
4.4.00.0030.0375.85
4.3.110.0000.0275.82
4.3.100.0070.0205.75
4.3.90.0030.0235.82
4.3.80.0100.0405.76
4.3.70.0030.0235.91
4.3.60.0030.0305.93
4.3.50.0070.0275.77
4.3.40.0030.0405.74
4.3.30.0030.0234.68
4.3.20.0030.0234.63
4.3.10.0000.0234.50
4.3.00.0070.0236.86

preferences:
39.79 ms | 401 KiB | 5 Q