3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace foo { class foo1 { } } namespace bar { class foo2 { } } namespace { $cs = "\foo\foo1"; $f = new $cs(); var_dump($f); $f = new $cs(); var_dump($f); }

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.00318.55
8.3.50.0120.00921.88
8.3.40.0070.01419.02
8.3.30.0140.00019.08
8.3.20.0040.00420.25
8.3.10.0000.00823.70
8.3.00.0050.00319.50
8.2.180.0110.00716.63
8.2.170.0090.00922.96
8.2.160.0140.00720.29
8.2.150.0120.00624.18
8.2.140.0050.00324.66
8.2.130.0030.00626.16
8.2.120.0120.00622.21
8.2.110.0030.00622.25
8.2.100.0070.00417.63
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0000.00818.22
8.2.30.0040.00417.89
8.2.20.0000.00817.56
8.2.10.0030.00518.05
8.2.00.0000.00817.73
8.1.280.0070.01425.92
8.1.270.0030.00622.20
8.1.260.0090.00926.35
8.1.250.0000.00828.09
8.1.240.0060.00323.92
8.1.230.0030.00719.16
8.1.220.0030.00517.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0000.00920.43
8.1.160.0000.00721.94
8.1.150.0000.00718.73
8.1.140.0030.00617.42
8.1.130.0030.00317.78
8.1.120.0040.00417.27
8.1.110.0050.00217.41
8.1.100.0050.00317.31
8.1.90.0000.00717.27
8.1.80.0050.00217.35
8.1.70.0030.00317.37
8.1.60.0000.00817.52
8.1.50.0030.00517.47
8.1.40.0000.00717.41
8.1.30.0040.00417.63
8.1.20.0040.00417.58
8.1.10.0040.00417.53
8.1.00.0000.00717.51
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.43
8.0.270.0030.00317.09
8.0.260.0080.00017.19
8.0.250.0000.00717.00
8.0.240.0060.00016.98
8.0.230.0070.00016.93
8.0.220.0030.00316.80
8.0.210.0040.00416.84
8.0.200.0040.00416.82
8.0.190.0030.00616.94
8.0.180.0080.00016.88
8.0.170.0000.00716.89
8.0.160.0080.00016.84
8.0.150.0070.00016.87
8.0.140.0070.00016.87
8.0.130.0030.00313.35
8.0.120.0040.00416.87
8.0.110.0070.00016.92
8.0.100.0040.00416.77
8.0.90.0030.00516.71
8.0.80.0070.01416.86
8.0.70.0060.00316.75
8.0.60.0040.00416.77
8.0.50.0040.00416.71
8.0.30.0090.01216.93
8.0.20.0090.00917.40
8.0.10.0040.00416.96
8.0.00.0100.01316.77
7.4.330.0030.00315.02
7.4.320.0030.00316.50
7.4.300.0030.00316.34
7.4.290.0050.00216.44
7.4.280.0070.00016.61
7.4.270.0030.00316.51
7.4.260.0040.00416.45
7.4.250.0070.00016.41
7.4.240.0050.00216.45
7.4.230.0080.00016.61
7.4.220.0090.01016.53
7.4.210.0150.00616.57
7.4.200.0040.00416.34
7.4.160.0100.00616.65
7.4.150.0110.00917.40
7.4.140.0110.00917.86
7.4.130.0070.01016.41
7.4.120.0080.01216.37
7.4.110.0100.00616.46
7.4.100.0100.00716.64
7.4.90.0090.00916.41
7.4.80.0080.01219.39
7.4.70.0130.00816.50
7.4.60.0060.01016.49
7.4.50.0050.00316.48
7.4.40.0100.00716.54
7.4.30.0130.00316.43
7.4.00.0050.01014.91
7.3.330.0030.00313.21
7.3.320.0030.00313.14
7.3.310.0030.00316.20
7.3.300.0030.00316.23
7.3.290.0090.00516.34
7.3.280.0110.00616.33
7.3.270.0130.00617.40
7.3.260.0060.01016.42
7.3.250.0100.00716.46
7.3.240.0130.01016.63
7.3.230.0000.01716.39
7.3.210.0150.00416.52
7.3.200.0160.00019.39
7.3.190.0140.00916.37
7.3.180.0080.00816.56
7.3.170.0120.00316.43
7.3.160.0100.01116.36
7.3.120.0110.00715.09
7.3.110.0090.00914.62
7.3.100.0030.01314.71
7.3.90.0150.00014.73
7.3.80.0040.00415.00
7.3.70.0030.01014.48
7.3.60.0060.00314.58
7.3.50.0060.00914.89
7.3.40.0090.00614.79
7.3.30.0000.00914.65
7.3.20.0080.00816.64
7.3.10.0070.00716.58
7.3.00.0040.01116.68
7.2.330.0070.01016.59
7.2.320.0070.01116.20
7.2.310.0000.01716.52
7.2.300.0000.01616.26
7.2.290.0060.01316.61
7.2.250.0040.00814.65
7.2.240.0130.00314.70
7.2.230.0060.01014.68
7.2.220.0030.01014.71
7.2.210.0090.00315.16
7.2.200.0030.01014.74
7.2.190.0070.00314.94
7.2.180.0030.00714.92
7.2.170.0030.01014.76
7.2.60.0040.01116.95
7.2.00.0090.00919.37
7.1.330.0080.00815.82
7.1.320.0070.00715.78
7.1.310.0060.00915.69
7.1.300.0030.01315.46
7.1.290.0040.01215.68
7.1.280.0090.00315.64
7.1.270.0070.01015.66
7.1.260.0030.01015.75
7.1.200.0060.00615.75
7.1.100.0000.01118.26
7.1.70.0040.00416.88
7.1.60.0130.01319.32
7.1.50.0070.00716.89
7.1.00.0030.07722.31
7.0.200.0030.00916.48
7.0.140.0030.07322.21
7.0.60.0270.07719.78
7.0.50.0070.05317.90
7.0.40.0100.08320.26
7.0.30.0300.04020.25
7.0.20.0270.03720.16
7.0.10.0100.07720.12
7.0.00.0000.04720.05
5.6.280.0100.06720.86
5.6.210.0070.05720.69
5.6.200.0030.04018.22
5.6.190.0030.08720.45
5.6.180.0100.05020.55
5.6.170.0430.06320.47
5.6.160.0070.03718.18
5.6.150.0070.07318.25
5.6.140.0130.04718.26
5.6.130.0100.08318.11
5.6.120.0130.05020.98
5.6.110.0070.08320.96
5.6.100.0130.07721.08
5.6.90.0100.03321.13
5.6.80.0100.08020.37
5.5.350.0100.04720.46
5.5.340.0000.05317.98
5.5.330.0070.05320.47
5.5.320.0130.04720.35
5.5.310.0130.04720.24
5.5.300.0030.06017.98
5.5.290.0270.06317.95
5.5.280.0100.08020.68
5.5.270.0200.06020.95
5.5.260.0030.08320.68
5.5.250.0100.07320.66
5.5.240.0170.08020.18
5.4.450.0700.06719.20
5.4.440.0400.06319.61
5.4.430.0800.05019.34
5.4.420.0830.06019.33
5.4.410.0670.05719.06
5.4.400.1030.05019.15
5.4.390.0800.04719.06
5.4.380.0830.05019.15
5.4.370.0330.04719.37
5.4.360.1030.04719.28
5.4.350.0730.05718.98
5.4.340.0080.03112.01
5.4.320.0060.03612.50
5.4.310.0090.03412.49
5.4.300.0040.03912.50
5.4.290.0080.04112.50
5.4.280.0090.03512.39
5.4.270.0050.03812.39
5.4.260.0070.03712.39
5.4.250.0040.03812.39
5.4.240.0070.03412.39
5.4.230.0070.03612.38
5.4.220.0060.03612.38
5.4.210.0080.03712.38
5.4.200.0030.04012.39
5.4.190.0080.03812.38
5.4.180.0060.03612.38
5.4.170.0070.03512.39
5.4.160.0080.03412.39
5.4.150.0050.03712.38
5.4.140.0060.03612.07
5.4.130.0040.03712.05
5.4.120.0090.03112.01
5.4.110.0080.03712.01
5.4.100.0090.03612.00
5.4.90.0090.03812.00
5.4.80.0070.03512.00
5.4.70.0090.03312.00
5.4.60.0070.03312.01
5.4.50.0110.04412.00
5.4.40.0120.03812.00
5.4.30.0090.03511.99
5.4.20.0060.03511.99
5.4.10.0080.03211.99
5.4.00.0100.04311.48
5.3.290.0070.04312.80
5.3.280.0050.05112.71
5.3.270.0080.05012.73
5.3.260.0120.04612.72
5.3.250.0110.04512.72
5.3.240.0040.03912.72
5.3.230.0050.04312.71
5.3.220.0110.06612.68
5.3.210.0080.04912.68
5.3.200.0130.05212.68
5.3.190.0040.04512.68
5.3.180.0090.04912.68
5.3.170.0100.04512.66
5.3.160.0080.04812.67
5.3.150.0090.06512.67
5.3.140.0100.06512.66
5.3.130.0090.05712.66
5.3.120.0080.04612.66
5.3.110.0080.04012.66
5.3.100.0120.06212.12
5.3.90.0160.05012.10
5.3.80.0070.04612.09
5.3.70.0060.05812.09
5.3.60.0060.05112.07
5.3.50.0090.04812.02
5.3.40.0110.05412.02
5.3.30.0080.03911.98
5.3.20.0110.03611.76
5.3.10.0050.04211.72
5.3.00.0090.03811.71
5.2.170.0060.0339.18
5.2.160.0110.0289.18
5.2.150.0090.0319.18
5.2.140.0080.0309.18
5.2.130.0050.0319.14
5.2.120.0110.0279.14
5.2.110.0070.0309.14
5.2.100.0090.0279.14
5.2.90.0030.0369.14
5.2.80.0060.0319.14
5.2.70.0050.0339.14
5.2.60.0060.0369.09
5.2.50.0050.0349.06
5.2.40.0100.0309.03
5.2.30.0130.0369.01
5.2.20.0120.0369.00
5.2.10.0070.0318.92
5.2.00.0070.0308.78
5.1.60.0100.0338.06
5.1.50.0050.0268.06
5.1.40.0030.0268.05
5.1.30.0080.0298.40
5.1.20.0080.0358.41
5.1.10.0090.0288.14
5.1.00.0160.0228.14
5.0.50.0120.0186.62
5.0.40.0040.0236.48
5.0.30.0110.0316.29
5.0.20.0090.0176.26
5.0.10.0080.0206.24
5.0.00.0080.0326.23
4.4.90.0070.0134.78
4.4.80.0050.0164.75
4.4.70.0100.0154.75
4.4.60.0020.0204.76
4.4.50.0060.0164.77
4.4.40.0140.0294.71
4.4.30.0100.0204.76
4.4.20.0060.0164.84
4.4.10.0100.0144.85
4.4.00.0080.0334.75
4.3.110.0120.0154.67
4.3.100.0110.0204.66
4.3.90.0060.0154.63
4.3.80.0040.0264.58
4.3.70.0040.0154.63
4.3.60.0050.0214.63
4.3.50.0030.0194.63
4.3.40.0010.0304.54
4.3.30.0010.0183.29
4.3.20.0040.0153.26
4.3.10.0010.0183.22
4.3.00.0230.0207.01

preferences:
44.3 ms | 401 KiB | 5 Q