3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace One { trait foo { static $bar = []; public static function a() { } } } namespace Two { trait bat { use \One\foo; public static function a() { $bar[] = 'qux'; } } } namespace Three { class qux { use \Two\bat; } } namespace { \Three\qux::a(); }

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.01016.87
8.3.50.0140.00821.30
8.3.40.0060.01218.67
8.3.30.0040.01418.54
8.3.20.0060.00820.20
8.3.10.0040.00423.66
8.3.00.0040.00422.43
8.2.180.0180.00025.92
8.2.170.0090.00618.82
8.2.160.0100.01022.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0070.00026.16
8.2.110.0100.00022.25
8.2.100.0120.00017.75
8.2.90.0060.00319.09
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0080.00017.80
8.2.50.0080.00018.07
8.2.40.0030.00621.00
8.2.30.0050.00319.72
8.2.20.0000.00817.68
8.2.10.0000.00717.93
8.2.00.0000.00818.12
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0040.00423.79
8.1.230.0070.00417.48
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0000.01017.13
8.1.180.0070.00018.10
8.1.170.0000.00918.67
8.1.160.0000.01022.01
8.1.150.0080.00018.88
8.1.140.0030.00617.34
8.1.130.0000.00717.65
8.1.120.0000.00717.35
8.1.110.0000.00717.49
8.1.100.0030.00517.45
8.1.90.0080.00317.41
8.1.80.0000.00817.50
8.1.70.0040.00417.35
8.1.60.0040.00417.59
8.1.50.0040.00417.48
8.1.40.0040.00417.45
8.1.30.0030.00617.63
8.1.20.0040.00417.54
8.1.10.0040.00417.50
8.1.00.0040.00417.33
8.0.300.0000.00718.77
8.0.290.0080.00016.61
8.0.280.0000.00718.38
8.0.270.0000.00717.26
8.0.260.0080.00017.30
8.0.250.0100.00016.84
8.0.240.0040.00416.96
8.0.230.0040.00416.84
8.0.220.0000.00616.86
8.0.210.0050.00316.90
8.0.200.0030.00316.93
8.0.190.0000.00816.99
8.0.180.0040.00416.91
8.0.170.0000.00916.88
8.0.160.0070.00016.96
8.0.150.0070.00016.81
8.0.140.0000.00716.71
8.0.130.0050.00213.29
8.0.120.0100.00016.73
8.0.110.0060.00316.75
8.0.100.0040.00416.88
8.0.90.0070.00016.98
8.0.80.0070.01116.82
8.0.70.0070.00016.80
8.0.60.0040.00416.90
8.0.50.0050.00316.92
8.0.30.0110.00816.89
8.0.20.0120.00817.40
8.0.10.0030.00316.88
8.0.00.0070.01116.79
7.4.330.0050.00015.16
7.4.320.0030.00316.48
7.4.300.0060.00016.52
7.4.290.0000.01016.45
7.4.280.0070.00316.43
7.4.270.0030.00316.46
7.4.260.0000.00716.51
7.4.250.0000.00716.39
7.4.240.0050.00216.48
7.4.230.0020.00516.40
7.4.220.0130.00716.45
7.4.210.0070.01016.36
7.4.200.0000.00716.62
7.4.160.0150.00016.51
7.4.150.0060.01217.40
7.4.140.0160.00617.86
7.4.130.0110.00816.42
7.4.120.0170.00316.46
7.4.110.0100.00716.54
7.4.100.0060.01716.58
7.4.90.0180.00016.58
7.4.80.0070.01119.39
7.4.70.0040.01316.37
7.4.60.0000.01716.53
7.4.50.0000.00416.26
7.4.40.0060.01316.32
7.4.30.0090.01116.32
7.4.00.0040.00815.15
7.3.330.0070.00013.30
7.3.320.0030.00313.16
7.3.310.0080.00016.32
7.3.300.0060.00016.16
7.3.290.0080.00716.29
7.3.280.0080.01116.28
7.3.270.0120.00617.40
7.3.260.0070.01416.43
7.3.250.0170.00116.35
7.3.240.0100.00916.41
7.3.230.0040.01216.39
7.3.210.0130.00316.29
7.3.200.0090.00916.52
7.3.190.0070.01316.21
7.3.180.0100.01016.28
7.3.170.0100.00716.46
7.3.160.0100.00616.37
7.2.330.0100.00716.70
7.2.320.0050.01116.58
7.2.310.0100.01416.26
7.2.300.0170.00516.72
7.2.290.0090.00916.68
7.2.00.0000.01119.27
7.1.100.0090.00317.83
7.1.70.0000.00917.18
7.1.60.0130.01319.18
7.1.50.0160.00634.84
7.1.00.0000.08022.42
7.0.200.0090.00616.87
7.0.60.0070.08720.01
7.0.50.0000.05017.84
7.0.40.0170.05719.98
7.0.30.0570.06020.17
7.0.20.0230.05720.05
7.0.10.0100.07320.06
7.0.00.0200.06020.30
5.6.280.0000.06320.92
5.6.210.0100.07020.67
5.6.200.0130.04318.25
5.6.190.0030.09720.77
5.6.180.4170.04020.33
5.6.170.0230.04720.51
5.6.160.0070.06020.43
5.6.150.0070.08018.16
5.6.140.0070.04718.15
5.6.130.0070.08018.27
5.6.120.0200.07320.90
5.6.110.0070.06321.14
5.6.100.0000.09020.98
5.6.90.0070.05020.98
5.6.80.0030.08320.54
5.6.70.4500.03320.46
5.5.350.0000.09320.43
5.5.340.0070.08317.99
5.5.330.0000.04320.37
5.5.320.0270.06320.31
5.5.310.0130.04720.39
5.5.300.0130.07317.95
5.5.290.0000.04317.98
5.5.280.0070.06720.90
5.5.270.0070.06720.89
5.5.260.0030.08320.73
5.5.250.0130.08020.69
5.5.240.0330.06320.16
5.4.450.0800.06319.48
5.4.440.0730.06319.20
5.4.430.0600.05319.47
5.4.420.0600.06019.58
5.4.410.0630.06719.50
5.4.400.0630.05019.32
5.4.390.0800.06319.30
5.4.380.0830.07019.16
5.4.370.0630.06019.15
5.4.360.0700.05019.06
5.4.350.0600.05719.29
5.4.340.0800.06719.23
5.4.320.0570.05318.98
5.4.310.0670.06318.89
5.4.300.0870.05019.06
5.4.290.0670.05719.26
5.4.280.0670.05018.84
5.4.270.0200.05719.25
5.4.260.0530.06719.27
5.4.250.0530.06019.22
5.4.240.0770.05018.83
5.4.230.0730.05719.22
5.4.220.0870.06019.05
5.4.210.0930.05719.18
5.4.200.0630.04716.89
5.4.190.0730.06019.13
5.4.180.0670.06318.88
5.4.170.0800.06019.00
5.4.160.0900.04719.12
5.4.150.0570.06018.93
5.4.140.0630.06016.55
5.4.130.0600.05016.57
5.4.120.0800.05016.46
5.4.110.0770.05016.47
5.4.100.0530.05316.76
5.4.90.0670.05016.58
5.4.80.0800.05016.46
5.4.70.0570.05716.73
5.4.60.0270.07016.43
5.4.50.0000.08016.32
5.4.40.0170.05016.34
5.4.30.0000.07316.34
5.4.20.0300.03716.16

preferences:
51.25 ms | 401 KiB | 5 Q