3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Some\Sub { class MyClass { public $v = 'first'; } } namespace Other\Subsection { class MyClass { public $v = 'second'; } } namespace { #use Some\Sub\MyClass; #use Other\Subsection; $object = new Other\Subsection\MyClass; var_dump($object->v); }

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.0040.01116.50
8.3.50.0080.01221.13
8.3.40.0040.01118.84
8.3.30.0100.00618.42
8.3.20.0000.00720.12
8.3.10.0040.00423.63
8.3.00.0040.00421.71
8.2.180.0070.00716.63
8.2.170.0130.00722.96
8.2.160.0030.01020.35
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0080.00020.94
8.2.120.0040.00426.35
8.2.110.0030.00619.25
8.2.100.0060.00617.93
8.2.90.0000.00819.22
8.2.80.0080.00017.97
8.2.70.0090.00017.50
8.2.60.0030.00718.04
8.2.50.0040.00418.09
8.2.40.0000.00822.31
8.2.30.0000.00719.41
8.2.20.0060.00317.68
8.2.10.0040.00417.91
8.2.00.0070.00017.99
8.1.280.0140.00725.92
8.1.270.0030.00622.06
8.1.260.0000.00728.09
8.1.250.0050.00328.09
8.1.240.0000.01022.34
8.1.230.0030.00717.70
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.22
8.1.190.0000.00817.10
8.1.180.0030.00618.10
8.1.170.0040.00418.42
8.1.160.0020.00520.64
8.1.150.0000.00719.08
8.1.140.0040.00419.48
8.1.130.0000.00917.64
8.1.120.0070.00017.41
8.1.110.0000.00717.38
8.1.100.0000.00717.32
8.1.90.0040.00417.33
8.1.80.0040.00417.40
8.1.70.0000.00717.43
8.1.60.0000.00717.50
8.1.50.0040.00417.46
8.1.40.0070.00017.44
8.1.30.0050.00317.55
8.1.20.0080.00017.46
8.1.10.0030.00617.51
8.1.00.0020.00517.44
8.0.300.0000.00818.77
8.0.290.0000.00816.58
8.0.280.0040.00418.27
8.0.270.0000.00717.19
8.0.260.0000.00717.09
8.0.250.0050.00216.90
8.0.240.0040.00416.80
8.0.230.0070.00016.93
8.0.220.0020.00516.76
8.0.210.0000.00716.73
8.0.200.0000.00716.84
8.0.190.0000.00816.89
8.0.180.0000.00716.84
8.0.170.0030.00716.87
8.0.160.0040.00416.86
8.0.150.0000.00816.80
8.0.140.0050.00216.71
8.0.130.0030.00313.30
8.0.120.0050.00316.68
8.0.110.0040.00416.80
8.0.100.0020.00516.77
8.0.90.0030.00516.77
8.0.80.0030.01316.87
8.0.70.0040.00416.86
8.0.60.0030.00616.62
8.0.50.0000.00816.86
8.0.30.0090.00917.11
8.0.20.0120.00717.40
8.0.10.0040.00416.91
8.0.00.0100.00716.58
7.4.330.0000.00516.79
7.4.320.0040.00416.34
7.4.300.0030.00616.45
7.4.290.0080.00016.56
7.4.280.0050.00316.42
7.4.270.0000.00716.55
7.4.260.0040.00416.55
7.4.250.0040.00416.42
7.4.240.0030.00316.47
7.4.230.0030.00316.61
7.4.220.0030.01516.55
7.4.210.0150.00316.58
7.4.200.0030.00316.64
7.4.160.0090.00616.46
7.4.150.0100.01017.40
7.4.140.0090.01317.86
7.4.130.0110.00616.46
7.4.120.0090.00716.32
7.4.110.0130.00916.19
7.4.100.0100.01416.53
7.4.90.0070.01116.42
7.4.80.0100.01019.39
7.4.70.0080.00816.50
7.4.60.0060.00916.40
7.4.50.0080.00816.31
7.4.40.0120.00616.42
7.4.30.0170.00316.38
7.4.10.0000.01215.06
7.4.00.0090.00914.95
7.3.330.0050.00013.01
7.3.320.0030.00313.02
7.3.310.0040.00416.04
7.3.300.0030.00316.14
7.3.290.0070.00916.18
7.3.280.0080.01116.15
7.3.270.0100.00717.40
7.3.260.0090.00916.34
7.3.250.0090.00816.11
7.3.240.0110.00616.42
7.3.230.0090.00616.39
7.3.210.0060.01016.14
7.3.200.0140.00719.39
7.3.190.0120.00916.26
7.3.180.0100.00716.20
7.3.170.0130.00716.45
7.3.160.0090.00616.48
7.3.130.0000.01814.77
7.3.120.0060.00914.71
7.3.110.0040.01414.79
7.3.100.0100.01014.62
7.3.90.0120.00314.66
7.3.80.0110.00414.70
7.3.70.0100.00314.62
7.3.60.0060.00614.66
7.3.50.0090.00614.51
7.3.40.0030.01014.77
7.3.30.0090.00914.63
7.3.20.0070.01016.32
7.3.10.0070.00716.57
7.3.00.0080.00516.43
7.2.330.0120.00616.63
7.2.320.0080.00816.73
7.2.310.0140.00316.26
7.2.300.0040.01216.28
7.2.290.0100.00616.32
7.2.260.0060.01015.15
7.2.250.0030.01314.79
7.2.240.0130.00315.16
7.2.230.0000.01715.15
7.2.220.0120.00614.77
7.2.210.0000.01514.88
7.2.200.0100.00714.95
7.2.190.0060.00314.70
7.2.180.0060.00614.63
7.2.170.0130.00014.88
7.2.160.0070.01114.73
7.2.150.0070.00316.89
7.2.140.0000.01016.47
7.2.130.0110.00416.49
7.2.120.0110.00416.59
7.2.110.0030.01016.78
7.2.100.0020.01116.63
7.2.90.0070.01016.58
7.2.80.0050.00916.63
7.2.70.0060.00816.70
7.2.60.0100.00516.62
7.2.50.0090.00816.40
7.2.40.0120.00816.33
7.2.30.0100.00716.58
7.2.20.0100.00916.51
7.2.10.0090.00616.66
7.2.00.0070.01017.55
7.1.330.0090.00415.55
7.1.320.0060.00915.77
7.1.310.0060.00915.55
7.1.300.0090.00015.59
7.1.290.0030.00715.69
7.1.280.0100.00715.76
7.1.270.0040.00815.67
7.1.260.0120.00315.52
7.1.250.0050.00615.32
7.1.240.0040.00715.88
7.1.230.0030.00715.65
7.1.220.0070.00715.77
7.1.210.0000.01215.59
7.1.200.0060.00315.85
7.1.190.0090.00615.74
7.1.180.0090.00915.73
7.1.170.0090.00015.64
7.1.160.0060.00915.57
7.1.150.0040.00815.75
7.1.140.0040.00415.87
7.1.130.0090.00315.64
7.1.120.0000.01115.69
7.1.110.0000.00915.72
7.1.100.0060.00916.85
7.1.90.0000.01515.72
7.1.80.0030.00815.65
7.1.70.0040.01116.25
7.1.60.0120.00717.64
7.1.50.0070.01216.29
7.1.40.0100.00315.75
7.1.30.0030.00715.64
7.1.20.0060.00315.45
7.1.10.0070.00315.71
7.1.00.0080.03819.14
7.0.330.0080.00415.46
7.0.320.0030.01315.27
7.0.310.0000.01215.23
7.0.300.0030.00715.09
7.0.290.0060.00615.30
7.0.280.0060.00615.35
7.0.270.0040.01115.14
7.0.260.0090.00015.43
7.0.250.0100.00315.36
7.0.240.0040.01115.45
7.0.230.0080.00015.45
7.0.220.0140.00015.52
7.0.210.0040.00415.46
7.0.200.1260.00315.03
7.0.190.0100.00315.27
7.0.180.0030.00615.39
7.0.170.0000.00915.27
7.0.160.0070.00415.05
7.0.150.0000.01315.13
7.0.140.0100.00315.30
7.0.130.0030.00815.29
7.0.120.0060.00615.49
7.0.110.0110.00315.52
7.0.100.0000.01515.49
7.0.90.0030.00615.29
7.0.80.0030.00715.29
7.0.70.0040.01115.32
7.0.60.0130.03818.54
7.0.50.0110.04016.71
7.0.40.0090.04416.80
7.0.30.0090.02916.70
7.0.20.0180.03816.95
7.0.10.0080.04516.84
7.0.00.0090.04216.87
5.6.400.0070.00614.28
5.6.390.0040.00414.24
5.6.380.0040.01114.53
5.6.370.0070.00414.04
5.6.360.0090.00314.23
5.6.350.0060.00314.23
5.6.340.0050.00514.18
5.6.330.0000.01214.35
5.6.320.0030.00914.41
5.6.310.0040.00814.14
5.6.300.0070.00414.56
5.6.290.0050.00514.17
5.6.280.0030.03417.83
5.6.270.0110.00014.51
5.6.260.0030.01014.39
5.6.250.0030.00714.35
5.6.240.0030.00714.21
5.6.230.0090.00614.25
5.6.220.0000.01613.96
5.6.210.0060.03117.52
5.6.200.0040.03416.21
5.6.190.0110.04417.46
5.6.180.0150.04317.40
5.6.170.0160.02117.36
5.6.160.0070.03817.40
5.6.150.0090.04216.38
5.6.140.0060.02716.30
5.6.130.0100.01816.13
5.6.120.0050.02517.72
5.6.110.0070.02217.54
5.6.100.0050.03217.73
5.6.90.0020.04717.64
5.6.80.0070.03017.37
5.6.70.0030.01014.20
5.6.60.0100.00314.32
5.6.50.0090.00614.57
5.6.40.0070.00714.39
5.6.30.0060.00914.31
5.6.20.0080.00514.25
5.6.10.0030.00914.21
5.6.00.0070.00714.16
5.5.380.0070.00414.40
5.5.370.0000.01013.95
5.5.360.0090.00314.26
5.5.350.0050.04617.20
5.5.340.0050.04216.11
5.5.330.0050.02417.20
5.5.320.0170.04217.14
5.5.310.0210.02617.19
5.5.300.0050.02716.06
5.5.290.0110.04015.89
5.5.280.0020.03417.41
5.5.270.0050.02317.31
5.5.260.0000.02917.50
5.5.250.0060.04617.41
5.5.240.0090.04217.15
5.5.230.0000.01213.80
5.5.220.0000.01314.35
5.5.210.0030.00613.98
5.5.200.0000.01114.37
5.5.190.0030.00613.78
5.5.180.0030.00713.70
5.5.170.0030.01114.03
5.5.160.0070.00714.31
5.5.150.0030.01014.25
5.5.140.0120.00613.95
5.5.130.0030.01414.20
5.5.120.0000.01813.80
5.5.110.0040.01114.36
5.5.100.0040.00714.22
5.5.90.0060.01014.15
5.5.80.0080.00514.39
5.5.70.0070.00714.18
5.5.60.0000.01114.20
5.5.50.0110.00413.89
5.5.40.0070.00713.89
5.5.30.0070.00714.40
5.5.20.0080.00313.93
5.5.10.0090.00414.33
5.5.00.0110.00414.10

preferences:
53.31 ms | 401 KiB | 5 Q