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; use Other\Subsection; $object = new 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.0170.00318.43
8.3.50.0040.01116.18
8.3.40.0070.00718.75
8.3.30.0120.00618.70
8.3.20.0000.00820.16
8.3.10.0050.00321.90
8.3.00.0070.00021.98
8.2.180.0150.00016.75
8.2.170.0110.00422.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00320.95
8.2.120.0080.00026.35
8.2.110.0060.00319.34
8.2.100.0040.00817.90
8.2.90.0000.00819.09
8.2.80.0030.00517.97
8.2.70.0030.00617.50
8.2.60.0040.00417.91
8.2.50.0000.00918.09
8.2.40.0040.00422.15
8.2.30.0000.00719.38
8.2.20.0040.00417.54
8.2.10.0070.00018.00
8.2.00.0070.00018.06
8.1.280.0090.00925.92
8.1.270.0100.01021.97
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0000.01022.42
8.1.230.0040.00717.64
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0070.00317.23
8.1.190.0030.00617.23
8.1.180.0000.00718.10
8.1.170.0080.00018.35
8.1.160.0000.00720.68
8.1.150.0050.00218.86
8.1.140.0080.00019.45
8.1.130.0040.00717.55
8.1.120.0040.00417.36
8.1.110.0000.00717.31
8.1.100.0030.00617.34
8.1.90.0040.00417.37
8.1.80.0000.00717.23
8.1.70.0050.00317.21
8.1.60.0000.00717.36
8.1.50.0000.00917.36
8.1.40.0000.01117.36
8.1.30.0000.00817.69
8.1.20.0000.00817.48
8.1.10.0030.00617.47
8.1.00.0000.00817.38
8.0.300.0060.00318.77
8.0.290.0000.00716.63
8.0.280.0050.00318.39
8.0.270.0030.00317.21
8.0.260.0000.00617.17
8.0.250.0040.00416.86
8.0.240.0040.00416.95
8.0.230.0050.00316.93
8.0.220.0000.00716.76
8.0.210.0040.00416.84
8.0.200.0040.00416.94
8.0.190.0000.00816.92
8.0.180.0070.00016.93
8.0.170.0030.00716.81
8.0.160.0040.00416.93
8.0.150.0040.00416.74
8.0.140.0040.00416.94
8.0.130.0030.00313.38
8.0.120.0040.00416.90
8.0.110.0040.00416.87
8.0.100.0020.00516.84
8.0.90.0040.00416.88
8.0.80.0090.00616.93
8.0.70.0030.00516.96
8.0.60.0030.00516.79
8.0.50.0000.00816.88
8.0.30.0120.00816.85
8.0.20.0140.00817.40
8.0.10.0000.00716.99
8.0.00.0130.00616.69
7.4.330.0020.00216.85
7.4.320.0030.00316.40
7.4.300.0040.00416.60
7.4.290.0030.00316.46
7.4.280.0050.00316.49
7.4.270.0030.00316.45
7.4.260.0000.00716.43
7.4.250.0000.00716.42
7.4.240.0030.00316.45
7.4.230.0000.00716.39
7.4.220.0100.00716.44
7.4.210.0080.00816.53
7.4.200.0030.00316.65
7.4.160.0000.02016.40
7.4.150.0160.00317.40
7.4.140.0060.01417.86
7.4.130.0120.00516.47
7.4.120.0100.00616.48
7.4.110.0130.00616.42
7.4.100.0120.00616.42
7.4.90.0180.00016.26
7.4.80.0070.01419.39
7.4.70.0140.00316.55
7.4.60.0070.01016.37
7.4.50.0040.00816.20
7.4.40.0100.00616.48
7.4.30.0090.00916.29
7.4.00.0060.00914.96
7.3.330.0000.00513.30
7.3.320.0030.00313.17
7.3.310.0000.00716.15
7.3.300.0070.00016.32
7.3.290.0070.00016.27
7.3.280.0070.01116.33
7.3.270.0160.00317.40
7.3.260.0030.01416.29
7.3.250.0090.01016.43
7.3.240.0120.00816.39
7.3.230.0030.01316.59
7.3.210.0120.00316.28
7.3.200.0070.01119.39
7.3.190.0030.01316.52
7.3.180.0030.01216.46
7.3.170.0070.01116.30
7.3.160.0120.00616.38
7.3.120.0000.01314.91
7.3.110.0030.00914.94
7.3.100.0060.00614.96
7.3.90.0030.01414.90
7.3.80.0090.00614.89
7.3.70.0000.01014.44
7.3.60.0100.00614.52
7.3.50.0090.00314.49
7.3.40.0060.00314.59
7.3.30.0090.00014.61
7.3.20.0030.01016.59
7.3.10.0030.00616.27
7.3.00.0040.00716.56
7.2.330.0110.00616.32
7.2.320.0110.00916.45
7.2.310.0100.01016.69
7.2.300.0100.00716.66
7.2.290.0030.01216.44
7.2.240.0120.00015.10
7.2.230.0100.00614.82
7.2.220.0000.01614.59
7.2.210.0040.01114.74
7.2.200.0070.00714.49
7.2.190.0070.01014.76
7.2.180.0030.01015.05
7.2.170.0060.00914.86
7.2.160.0070.00714.77
7.2.150.0040.00916.79
7.2.140.0000.01116.58
7.2.130.0000.00916.83
7.2.120.0140.00316.70
7.2.110.0040.00816.67
7.2.100.0110.00416.71
7.2.90.0090.00316.72
7.2.80.0060.00316.80
7.2.70.0070.00716.92
7.2.60.0040.01116.71
7.2.50.0030.00916.75
7.2.40.0100.00616.65
7.2.30.0060.00616.75
7.2.20.0060.00316.40
7.2.10.0070.01016.55
7.2.00.0030.00817.89
7.1.330.0030.00715.21
7.1.320.0110.00415.67
7.1.310.0000.01015.70
7.1.300.0070.00315.60
7.1.290.0120.00315.68
7.1.280.0110.00415.25
7.1.270.0100.00715.40
7.1.260.0140.00015.39
7.1.250.0060.00615.66
7.1.200.0100.00015.60
7.1.100.0070.00718.27
7.1.70.0050.00216.80
7.1.60.0100.01019.40
7.1.50.0100.00316.85
7.1.00.0070.07322.43
7.0.200.0350.00614.47
7.0.60.0200.06721.59
7.0.50.0070.04317.84
7.0.40.0030.06720.13
7.0.30.0300.03020.16
7.0.20.0430.06720.16
7.0.10.0100.06320.07
7.0.00.0000.08020.16
5.6.280.0000.03320.78
5.6.210.0100.04320.52
5.6.200.0030.08018.25
5.6.190.0070.08320.62
5.6.180.0230.08020.48
5.6.170.0370.06720.52
5.6.160.0070.07720.45
5.6.150.0030.08318.15
5.6.140.0170.07318.24
5.6.130.0100.08718.15
5.6.120.0030.06721.02
5.6.110.0130.07721.01
5.6.100.0170.06721.09
5.6.90.0070.08721.12
5.6.80.0070.08020.38
5.5.350.0030.08320.38
5.5.340.0130.07717.96
5.5.330.0070.08720.56
5.5.320.0430.05720.38
5.5.310.0270.07020.37
5.5.300.0030.07017.98
5.5.290.0130.08017.99
5.5.280.0030.04020.77
5.5.270.0100.04320.89
5.5.260.0070.04020.89
5.5.250.0200.07020.57
5.5.240.0200.07720.15

preferences:
43.73 ms | 400 KiB | 5 Q