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 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.0070.00716.63
8.3.50.0090.01120.96
8.3.40.0040.01118.83
8.3.30.0090.00618.73
8.3.20.0070.00020.07
8.3.10.0040.00421.73
8.3.00.0050.00221.77
8.2.180.0140.00716.50
8.2.170.0090.00622.96
8.2.160.0110.00320.43
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00020.79
8.2.120.0040.00426.35
8.2.110.0030.00619.27
8.2.100.0060.00617.93
8.2.90.0030.00519.28
8.2.80.0000.00817.97
8.2.70.0040.00717.63
8.2.60.0090.00017.80
8.2.50.0030.00518.09
8.2.40.0080.00022.32
8.2.30.0070.00019.39
8.2.20.0070.00017.68
8.2.10.0000.00717.92
8.2.00.0040.00417.87
8.1.280.0170.00325.92
8.1.270.0110.00722.13
8.1.260.0070.00028.09
8.1.250.0020.00528.09
8.1.240.0030.00722.41
8.1.230.0080.00317.83
8.1.220.0030.00617.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0050.00317.23
8.1.180.0000.00918.10
8.1.170.0040.00418.46
8.1.160.0000.00720.59
8.1.150.0040.00418.96
8.1.140.0000.00817.30
8.1.130.0050.00317.58
8.1.120.0000.00717.33
8.1.110.0050.00217.23
8.1.100.0050.00217.29
8.1.90.0040.00417.29
8.1.80.0070.00017.20
8.1.70.0030.00317.33
8.1.60.0030.00617.33
8.1.50.0060.00317.39
8.1.40.0060.00317.34
8.1.30.0040.00417.59
8.1.20.0000.00817.48
8.1.10.0040.00417.53
8.1.00.0080.00017.41
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0070.00018.26
8.0.270.0000.00716.71
8.0.260.0030.00517.14
8.0.250.0000.00716.88
8.0.240.0030.00516.88
8.0.230.0070.00016.81
8.0.220.0000.00716.85
8.0.210.0070.00016.75
8.0.200.0040.00416.91
8.0.190.0030.00516.95
8.0.180.0040.00416.88
8.0.170.0070.00316.82
8.0.160.0030.00316.93
8.0.150.0040.00416.84
8.0.140.0080.00016.82
8.0.130.0030.00313.30
8.0.120.0090.00016.84
8.0.110.0070.00016.89
8.0.100.0040.00416.73
8.0.90.0050.00216.88
8.0.80.0040.01116.88
8.0.70.0050.00216.84
8.0.60.0030.00616.81
8.0.50.0040.00416.84
8.0.30.0100.00616.83
8.0.20.0080.01117.40
8.0.10.0040.00416.95
8.0.00.0130.00416.75
7.4.330.0000.00516.73
7.4.320.0060.00016.37
7.4.300.0030.00316.55
7.4.290.0020.00516.49
7.4.280.0040.00416.43
7.4.270.0030.00316.52
7.4.260.0000.01016.44
7.4.250.0040.00416.51
7.4.240.0050.00216.59
7.4.230.0000.00716.64
7.4.220.0090.00916.47
7.4.210.0030.01716.32
7.4.200.0030.00316.59
7.4.160.0120.00316.45
7.4.150.0100.01017.40
7.4.140.0140.01117.86
7.4.130.0070.01016.41
7.4.120.0100.00716.63
7.4.110.0100.01116.38
7.4.100.0110.00616.38
7.4.90.0150.00616.30
7.4.80.0100.01019.39
7.4.70.0060.01016.57
7.4.60.0090.00616.50
7.4.50.0120.00016.49
7.4.40.0120.00616.36
7.4.30.0120.00816.50
7.4.10.0110.00715.06
7.4.00.0080.00814.80
7.3.330.0000.00513.13
7.3.320.0040.00413.32
7.3.310.0000.00716.41
7.3.300.0070.00016.16
7.3.290.0110.00516.32
7.3.280.0090.00916.26
7.3.270.0090.00817.40
7.3.260.0090.00916.54
7.3.250.0110.00816.26
7.3.240.0060.01216.33
7.3.230.0030.01316.63
7.3.210.0140.00316.43
7.3.200.0090.00919.39
7.3.190.0090.00916.26
7.3.180.0030.01316.33
7.3.170.0110.00516.41
7.3.160.0100.00716.45
7.3.130.0100.00714.52
7.3.120.0000.00915.07
7.3.110.0150.00315.09
7.3.100.0090.00614.66
7.3.90.0060.01314.73
7.3.80.0040.01514.75
7.3.70.0040.01114.64
7.3.60.0090.00614.83
7.3.50.0030.01414.81
7.3.40.0070.00314.75
7.3.30.0000.00914.89
7.3.20.0090.00916.72
7.3.10.0050.01116.55
7.3.00.0000.01016.38
7.2.330.0110.00816.49
7.2.320.0000.01616.61
7.2.310.0060.01216.68
7.2.300.0030.01316.65
7.2.290.0060.01016.45
7.2.260.0060.01315.00
7.2.250.0060.01015.12
7.2.240.0070.00714.84
7.2.230.0070.01014.85
7.2.220.0070.01114.50
7.2.210.0070.00715.09
7.2.200.0030.00614.95
7.2.190.0040.00814.92
7.2.180.0070.00714.83
7.2.170.0000.01015.04
7.2.160.0070.00714.95
7.2.150.0040.01116.84
7.2.140.0110.00016.61
7.2.130.0020.00916.64
7.2.120.0130.00316.49
7.2.110.0080.00816.36
7.2.100.0060.00916.77
7.2.90.0080.01016.84
7.2.80.0090.00516.94
7.2.70.0070.00716.64
7.2.60.0100.00616.81
7.2.50.0060.00816.70
7.2.40.0070.00916.76
7.2.30.0120.00516.78
7.2.20.0040.00916.64
7.2.10.0060.00516.86
7.2.00.0070.00617.49
7.1.330.0000.01315.60
7.1.320.0100.01015.81
7.1.310.0040.00715.89
7.1.300.0070.01115.64
7.1.290.0000.00915.69
7.1.280.0000.01315.43
7.1.270.0060.00915.63
7.1.260.0030.01015.57
7.1.250.0070.01015.36
7.1.240.0080.00615.68
7.1.230.0000.01115.62
7.1.220.0040.01115.71
7.1.210.0080.00615.76
7.1.200.0030.00915.55
7.1.190.0070.01115.43
7.1.180.0070.00715.72
7.1.170.0030.01015.39
7.1.160.0080.00315.53
7.1.150.0040.01115.52
7.1.140.0030.00715.46
7.1.130.0030.01015.54
7.1.120.0070.00715.78
7.1.110.0060.00915.64
7.1.100.0050.01016.89
7.1.90.0120.00315.66
7.1.80.0090.00615.52
7.1.70.0050.00616.38
7.1.60.0060.01417.36
7.1.50.0040.01016.24
7.1.40.0100.01015.74
7.1.30.0050.00515.54
7.1.20.0000.00915.63
7.1.10.0090.00615.63
7.1.00.0060.03918.95
7.0.330.0090.00615.10
7.0.320.0070.00715.32
7.0.310.0070.00315.21
7.0.300.0080.00414.96
7.0.290.0030.01015.38
7.0.280.0030.01015.01
7.0.270.0040.00814.98
7.0.260.0080.00815.36
7.0.250.0040.00715.07
7.0.240.0030.00615.32
7.0.230.0030.00615.15
7.0.220.0060.00615.24
7.0.210.0060.00615.02
7.0.200.0240.00915.10
7.0.190.0120.00615.18
7.0.180.0070.00715.51
7.0.170.0150.00015.24
7.0.160.0070.00715.32
7.0.150.0030.00615.11
7.0.140.0030.01015.45
7.0.130.0070.00415.39
7.0.120.0070.01015.54
7.0.110.0060.01215.11
7.0.100.0050.04717.68
7.0.90.0020.02617.57
7.0.80.0080.03517.63
7.0.70.0100.04117.60
7.0.60.0080.04317.60
7.0.50.0170.04317.91
7.0.40.0090.02316.77
7.0.30.0070.02816.78
7.0.20.0080.03716.81
7.0.10.0100.04316.75
7.0.00.0090.04716.77
5.6.400.0090.00614.20
5.6.390.0060.00314.00
5.6.380.0030.01414.50
5.6.370.0040.01114.32
5.6.360.0090.00614.13
5.6.350.0090.00314.33
5.6.340.0090.00614.42
5.6.330.0060.00314.41
5.6.320.0000.00914.43
5.6.310.0090.00014.16
5.6.300.0000.01014.34
5.6.290.0000.01214.19
5.6.280.0040.02917.67
5.6.270.0040.01214.30
5.6.260.0100.01014.08
5.6.250.0070.04217.42
5.6.240.0030.03417.43
5.6.230.0050.04117.37
5.6.220.0080.03917.45
5.6.210.0050.03117.45
5.6.200.0170.03717.63
5.6.190.0050.02917.48
5.6.180.0060.03517.57
5.6.170.0070.03917.60
5.6.160.0100.04617.61
5.6.150.0100.04517.53
5.6.140.0050.03017.55
5.6.130.0030.03717.59
5.6.120.0050.04317.68
5.6.110.0100.03317.61
5.6.100.0070.03917.59
5.6.90.0140.04017.59
5.6.80.0070.02717.29
5.6.70.0080.04017.16
5.6.60.0070.04217.19
5.6.50.0030.03017.20
5.6.40.0110.02317.15
5.6.30.0050.03517.15
5.6.20.0070.04417.26
5.6.10.0090.03517.20
5.6.00.0050.03717.18
5.5.380.0070.04217.23
5.5.370.0110.03017.18
5.5.360.0070.02517.15
5.5.350.0080.04217.33
5.5.340.0080.03817.45
5.5.330.0110.03517.34
5.5.320.0100.03117.43
5.5.310.0030.04617.53
5.5.300.0060.04817.42
5.5.290.0050.03517.25
5.5.280.0100.03017.53
5.5.270.0130.04017.50
5.5.260.0100.03517.39
5.5.250.0120.02317.35
5.5.240.0110.03517.12
5.5.230.0070.04217.13
5.5.220.0040.03117.08
5.5.210.0050.04617.11
5.5.200.0110.03716.93
5.5.190.0030.04317.10
5.5.180.0130.03317.01
5.5.170.0030.01413.91
5.5.160.0030.04716.97
5.5.150.0110.03917.08
5.5.140.0110.03117.18
5.5.130.0030.02516.95
5.5.120.0020.02817.12
5.5.110.0080.03917.00
5.5.100.0050.02916.85
5.5.90.0070.04517.01
5.5.80.0030.03716.96
5.5.70.0060.03117.03
5.5.60.0030.04917.01
5.5.50.0080.04716.85
5.5.40.0070.04917.00
5.5.30.0030.04417.07
5.5.20.0120.03616.80
5.5.10.0080.02816.78
5.5.00.0050.04216.98

preferences:
46.81 ms | 401 KiB | 5 Q