3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Bar { public static function dump() { var_dump('parent::class: ' . parent::class, 'self::class: ' . self::class, 'static::class: ' . static::class); } } class Foo { use Bar; } Foo::dump();

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.52
8.3.50.0110.00821.94
8.3.40.0070.00718.78
8.3.30.0100.01019.04
8.3.20.0070.00020.04
8.3.10.0040.00423.64
8.3.00.0040.00419.17
8.2.180.0110.00416.38
8.2.170.0070.00722.96
8.2.160.0070.00720.53
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0050.00320.89
8.2.110.0100.00019.10
8.2.100.0060.00617.71
8.2.90.0080.00019.05
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0030.00517.80
8.2.50.0050.00318.07
8.2.40.0020.00519.41
8.2.30.0000.00818.20
8.2.20.0090.00317.71
8.2.10.0000.00817.96
8.2.00.0050.00317.66
8.1.280.0130.00725.92
8.1.270.0040.00423.71
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.75
8.1.230.0060.00617.42
8.1.220.0050.00317.76
8.1.210.0030.00618.77
8.1.200.0030.00617.25
8.1.190.0050.00317.23
8.1.180.0000.00818.10
8.1.170.0060.00318.70
8.1.160.0040.00422.08
8.1.150.0040.00418.56
8.1.140.0040.00417.30
8.1.130.0000.00717.63
8.1.120.0000.00717.38
8.1.110.0070.00017.37
8.1.100.0030.00317.32
8.1.90.0070.00017.39
8.1.80.0080.00017.41
8.1.70.0070.00017.37
8.1.60.0030.00517.41
8.1.50.0000.00817.38
8.1.40.0080.00017.47
8.1.30.0000.00817.57
8.1.20.0040.00417.64
8.1.10.0060.00317.51
8.1.00.0000.00817.43
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00718.43
8.0.270.0020.00517.13
8.0.260.0000.00617.17
8.0.250.0070.00016.91
8.0.240.0030.00316.88
8.0.230.0000.00816.87
8.0.220.0030.00317.00
8.0.210.0030.00316.84
8.0.200.0000.00817.07
8.0.190.0040.00316.98
8.0.180.0050.00216.87
8.0.170.0000.00817.00
8.0.160.0030.00617.02
8.0.150.0030.00516.96
8.0.140.0060.00316.96
8.0.130.0040.00413.45
8.0.120.0000.00816.92
8.0.110.0000.00716.90
8.0.100.0020.00516.89
8.0.90.0030.00516.78
8.0.80.0100.00716.85
8.0.70.0000.00716.84
8.0.60.0050.00316.84
8.0.50.0040.00417.01
8.0.30.0170.00717.22
8.0.20.0160.00317.40
8.0.10.0040.00416.98
8.0.00.0090.00916.85
7.4.330.0000.00515.05
7.4.320.0030.00316.40
7.4.300.0060.00016.57
7.4.290.0070.00016.44
7.4.280.0060.00316.39
7.4.270.0030.00316.38
7.4.260.0070.00016.43
7.4.250.0030.00316.50
7.4.240.0000.00716.48
7.4.230.0000.00716.32
7.4.220.0140.01016.58
7.4.210.0060.00916.46
7.4.200.0000.00716.38
7.4.190.0070.00016.62
7.4.160.0070.01016.38
7.4.150.0100.01617.40
7.4.140.0090.00917.86
7.4.130.0090.00916.46
7.4.120.0100.00816.44
7.4.110.0060.01116.62
7.4.100.0120.00616.48
7.4.90.0100.00716.62
7.4.80.0080.00919.39
7.4.70.0090.00616.59
7.4.60.0070.01016.59
7.4.50.0020.00216.19
7.4.40.0060.01016.63
7.4.30.0080.00816.48
7.4.00.0090.00815.00
7.3.330.0000.00613.23
7.3.320.0000.00513.13
7.3.310.0000.00716.20
7.3.300.0030.00316.37
7.3.290.0090.00616.41
7.3.280.0090.00816.35
7.3.270.0120.01217.40
7.3.260.0140.00416.37
7.3.250.0090.00916.45
7.3.240.0160.00716.36
7.3.230.0120.01216.46
7.3.210.0030.01316.44
7.3.200.0090.01219.39
7.3.190.0100.00716.39
7.3.180.0050.01016.57
7.3.170.0130.00716.53
7.3.160.0090.00816.38
7.3.120.0030.01214.96
7.3.110.0090.00915.05
7.3.100.0060.01014.79
7.3.90.0090.00914.79
7.3.80.0070.00714.66
7.3.70.0100.00314.68
7.3.60.0000.01814.83
7.3.50.0070.01314.69
7.3.40.0000.01114.82
7.3.30.0060.00914.76
7.3.20.0070.00716.76
7.3.10.0060.00616.76
7.3.00.0090.00616.64
7.2.330.0110.00716.58
7.2.320.0070.01016.24
7.2.310.0110.00616.50
7.2.300.0100.00616.36
7.2.290.0190.00016.16
7.2.250.0090.00315.05
7.2.240.0100.01014.85
7.2.230.0120.00314.82
7.2.220.0000.01414.70
7.2.210.0000.01814.66
7.2.200.0090.00615.12
7.2.190.0090.00615.13
7.2.180.0100.00714.97
7.2.170.0040.01114.98
7.2.60.0080.00816.65
7.2.00.0040.00819.37
7.1.330.0030.01015.79
7.1.320.0070.00715.63
7.1.310.0070.01015.80
7.1.300.0000.02115.51
7.1.290.0100.01015.70
7.1.280.0030.01015.66
7.1.270.0040.01115.51
7.1.260.0070.00715.61
7.1.200.0030.00315.71
7.1.70.0030.00617.09
7.1.60.0040.00717.27
7.1.50.0070.01816.68
7.1.00.0030.07322.33
7.0.200.0070.01016.75
7.0.140.0030.07322.16
7.0.60.0070.07319.90
7.0.50.0030.07717.86
7.0.40.0230.07320.11
7.0.30.0300.07720.15
7.0.20.0300.08020.30
7.0.10.0230.04020.25
7.0.00.0030.09020.18
5.6.280.0070.07020.91
5.6.210.0070.07720.45
5.6.200.0030.05718.25
5.6.190.0070.08320.34
5.6.180.4170.04020.44
5.6.170.0200.04020.55
5.6.160.0130.03720.61
5.6.150.0000.08318.12
5.6.140.0070.08018.15
5.6.130.0100.03718.14
5.6.120.0100.07321.07
5.6.110.0100.08021.00
5.6.100.0070.05021.01
5.6.90.0130.07321.12
5.6.80.0100.07720.40
5.6.70.0270.07720.39
5.5.350.0170.08320.47
5.5.340.0030.04317.98
5.5.330.0070.04320.41
5.5.320.0330.03720.19
5.5.310.0130.08320.41
5.5.300.0030.04318.04
5.5.290.0130.06717.98
5.5.280.0070.08720.80
5.5.270.0100.08320.74
5.5.260.0070.06320.76
5.5.250.0030.08320.48
5.5.240.0100.07320.27
5.4.450.0900.05719.36
5.4.440.0630.05319.61
5.4.430.0700.05719.46
5.4.420.0630.00019.53
5.4.410.0130.05318.95
5.4.400.0170.05718.85
5.4.390.0230.05718.70
5.4.380.0130.05718.80
5.4.370.0170.04318.61
5.4.360.0130.03718.84
5.4.350.0060.03612.03
5.4.340.0090.03512.03
5.4.320.0080.03512.51
5.4.310.0080.03612.52
5.4.300.0090.04812.51
5.4.290.0090.05812.51
5.4.280.0080.04512.41
5.4.270.0070.04712.41
5.4.260.0100.05212.41
5.4.250.0100.04912.41
5.4.240.0070.04912.41
5.4.230.0110.03812.40
5.4.220.0060.04612.40
5.4.210.0080.03912.40
5.4.200.0070.04212.40
5.4.190.0090.05612.39
5.4.180.0140.06712.40
5.4.170.0100.05612.41
5.4.160.0180.07212.40
5.4.150.0120.05112.40
5.4.140.0120.04512.09
5.4.130.0110.04712.07
5.4.120.0110.04812.04
5.4.110.0130.04912.03
5.4.100.0100.04612.03
5.4.90.0120.05612.03
5.4.80.0130.06012.04
5.4.70.0100.04912.03
5.4.60.0090.04512.03
5.4.50.0090.03912.03
5.4.40.0080.05712.02
5.4.30.0080.04912.01
5.4.20.0090.04312.00
5.4.10.0090.04312.01
5.4.00.0050.04511.50
5.3.290.0080.03812.80
5.3.280.0090.03812.71
5.3.270.0090.04912.73
5.3.260.0120.04212.72
5.3.250.0110.04112.72
5.3.240.0070.04512.72
5.3.230.0050.04312.71
5.3.220.0060.03712.68
5.3.210.0020.04412.68
5.3.200.0200.06612.68
5.3.190.0160.05712.68
5.3.180.0120.07212.68
5.3.170.0050.04212.67
5.3.160.0110.04012.67
5.3.150.0130.06212.67
5.3.140.0090.04312.66
5.3.130.0130.04812.66
5.3.120.0080.05112.66
5.3.110.0200.07412.66
5.3.100.0150.05712.12
5.3.90.0160.06312.08
5.3.80.0190.09212.07
5.3.70.0180.08412.08
5.3.60.0140.05412.06
5.3.50.0130.05812.00
5.3.40.0220.06612.00
5.3.30.0200.07311.95
5.3.20.0090.03711.73
5.3.10.0100.06011.70
5.3.00.0090.03811.68
5.2.170.0090.0309.18
5.2.160.0060.0329.18
5.2.150.0090.0329.18
5.2.140.0050.0359.18
5.2.130.0050.0339.14
5.2.120.0060.0339.14
5.2.110.0020.0459.14
5.2.100.0140.0489.14
5.2.90.0050.0349.14
5.2.80.0020.0359.14
5.2.70.0070.0369.14
5.2.60.0090.0299.09
5.2.50.0140.0589.06
5.2.40.0120.0729.03
5.2.30.0070.0539.02
5.2.20.0100.0409.00
5.2.10.0060.0608.93
5.2.00.0100.0688.78
5.1.60.0120.0578.07
5.1.50.0110.0588.07
5.1.40.0070.0488.05
5.1.30.0090.0538.40
5.1.20.0080.0448.42
5.1.10.0090.0488.14
5.1.00.0060.0358.14
5.0.50.0080.0446.62
5.0.40.0090.0316.48
5.0.30.0080.0586.29
5.0.20.0090.0466.26
5.0.10.0110.0486.24
5.0.00.0060.0546.23
4.4.90.0060.0464.78
4.4.80.0060.0494.75
4.4.70.0240.0604.75
4.4.60.0060.0224.75
4.4.50.0060.0464.77
4.4.40.0040.0684.71
4.4.30.0010.0204.76
4.4.20.0090.0354.84
4.4.10.0050.0264.85
4.4.00.0060.0484.76
4.3.110.0030.0304.67
4.3.100.0070.0514.67
4.3.90.0040.0244.64
4.3.80.0050.0344.59
4.3.70.0070.0194.63
4.3.60.0040.0454.62
4.3.50.0040.0254.63
4.3.40.0070.0364.54
4.3.30.0020.0233.28
4.3.20.0020.0223.26
4.3.10.0040.0243.21
4.3.00.0130.0177.44

preferences:
43.14 ms | 401 KiB | 5 Q