3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { public static $class = __CLASS__; public static $file = __FILE__; public function f() { var_dump(__CLASS__); var_dump(__FILE__); } }

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.40.0090.00618.41
8.3.30.0090.00618.34
8.3.20.0040.00418.35
8.3.10.0000.00818.53
8.3.00.0050.00319.26
8.2.170.0160.00322.96
8.2.160.0070.00720.96
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0050.00220.88
8.2.110.0000.00921.13
8.2.100.0080.00317.72
8.2.90.0030.00619.30
8.2.80.0050.00219.39
8.2.70.0000.00817.50
8.2.60.0000.01017.80
8.2.50.0060.00318.07
8.2.40.0060.00318.03
8.2.30.0050.00217.78
8.2.20.0030.00617.57
8.2.10.0040.00417.57
8.2.00.0040.00417.59
8.1.270.0040.00424.66
8.1.260.0090.00026.35
8.1.250.0040.00428.09
8.1.240.0100.00020.62
8.1.230.0070.00320.97
8.1.220.0040.00417.74
8.1.210.0050.00318.97
8.1.200.0030.00617.10
8.1.190.0070.00017.27
8.1.180.0040.00418.10
8.1.170.0040.00418.67
8.1.160.0000.00818.79
8.1.150.0070.00018.54
8.1.140.0000.00717.22
8.1.130.0000.00717.75
8.1.120.0000.00717.38
8.1.110.0050.00217.35
8.1.100.0000.00717.35
8.1.90.0040.00317.30
8.1.80.0030.00317.27
8.1.70.0030.00317.28
8.1.60.0000.00817.50
8.1.50.0020.00517.34
8.1.40.0070.00017.33
8.1.30.0000.00717.56
8.1.20.0000.00717.46
8.1.10.0050.00317.35
8.1.00.0020.00517.16
8.0.300.0030.00619.90
8.0.290.0060.00316.63
8.0.280.0030.00318.30
8.0.270.0030.00316.99
8.0.260.0030.00316.68
8.0.250.0040.00416.70
8.0.240.0000.00716.75
8.0.230.0040.00416.83
8.0.220.0000.00616.64
8.0.210.0030.00316.69
8.0.200.0030.00316.79
8.0.190.0030.00316.80
8.0.180.0080.00316.70
8.0.170.0050.00316.70
8.0.160.0030.00316.70
8.0.150.0060.00316.73
8.0.140.0000.00916.68
8.0.130.0030.00313.22
8.0.120.0000.00816.62
8.0.110.0030.00316.63
8.0.100.0000.00716.75
8.0.90.0000.00816.82
8.0.80.0060.00916.65
8.0.70.0040.00416.63
8.0.60.0000.00816.73
8.0.50.0030.00316.63
8.0.30.0140.00416.84
8.0.20.0110.00716.99
8.0.10.0040.00416.65
8.0.00.0150.00716.72
7.4.330.0000.00512.84
7.4.320.0030.00316.46
7.4.300.0060.00016.45
7.4.290.0040.00416.50
7.4.280.0000.00816.36
7.4.270.0030.00316.27
7.4.260.0030.00313.15
7.4.250.0080.00016.49
7.4.240.0020.00516.36
7.4.230.0000.00616.54
7.4.220.0160.00916.49
7.4.210.0060.00916.44
7.4.200.0000.00816.20
7.4.190.0040.00316.34
7.4.160.0070.01516.33
7.4.150.0100.00716.04
7.4.140.0130.00816.31
7.4.130.0090.00916.58
7.4.120.0100.00716.37
7.4.110.0090.00916.37
7.4.100.0100.00716.32
7.4.90.0170.00716.45
7.4.80.0100.00619.39
7.4.70.0100.01916.40
7.4.60.0090.00616.34
7.4.50.0110.00016.26
7.4.40.0060.01216.28
7.4.30.0070.01016.50
7.4.00.0090.00614.64
7.3.330.0000.00713.09
7.3.320.0040.00413.16
7.3.310.0050.00216.15
7.3.300.0030.00316.21
7.3.290.0030.01216.14
7.3.280.0100.00816.15
7.3.270.0140.00316.21
7.3.260.0130.01016.33
7.3.250.0120.00516.33
7.3.240.0060.00916.21
7.3.230.0060.00916.34
7.3.210.0140.00316.13
7.3.200.0090.00616.02
7.3.190.0120.00316.17
7.3.180.0090.00816.29
7.3.170.0190.00316.15
7.3.160.0030.01316.41
7.3.120.0000.01214.56
7.3.110.0060.00614.81
7.3.100.0000.01414.48
7.3.90.0000.01214.61
7.3.80.0030.01014.71
7.3.70.0070.00714.61
7.3.60.0060.00914.48
7.3.50.0040.00414.38
7.3.40.0080.00414.35
7.3.30.0030.00514.64
7.3.20.0040.00716.69
7.3.10.0000.01116.32
7.3.00.0070.00316.66
7.2.330.0030.01716.11
7.2.320.0070.01016.34
7.2.310.0140.00716.28
7.2.300.0000.01616.61
7.2.290.0130.00616.09
7.2.240.0120.00014.34
7.2.230.0080.00415.08
7.2.220.0030.01014.77
7.2.210.0000.01414.71
7.2.200.0040.00414.51
7.2.190.0090.00614.95
7.2.180.0000.01414.67
7.2.170.0090.00614.61
7.2.160.0060.00814.69
7.2.150.0070.00716.29
7.2.140.0040.00816.66
7.2.130.0040.00716.75
7.2.120.0110.00416.57
7.2.110.0070.00316.56
7.2.100.0060.01016.85
7.2.90.0060.00916.63
7.2.80.0090.00316.70
7.2.70.0060.00916.36
7.2.60.0040.00716.68
7.2.50.0030.00916.66
7.2.40.0070.00716.93
7.2.30.0060.00616.71
7.2.20.0030.01716.84
7.2.10.0070.01016.87
7.2.00.0050.00617.82
7.1.330.0000.01315.49
7.1.320.0120.00015.78
7.1.310.0000.01115.92
7.1.300.0100.00015.48
7.1.290.0070.00715.61
7.1.280.0110.00415.34
7.1.270.0030.01015.38
7.1.260.0000.01015.69
7.1.250.0000.01115.69
7.1.100.0050.00517.84
7.1.70.0070.00017.03
7.1.60.0060.01919.40
7.1.50.0220.01834.70
7.1.00.0000.06322.30
7.0.200.0060.00916.38
7.0.140.0070.07022.02
7.0.120.0000.07722.02
7.0.60.0070.08720.02
7.0.50.0000.06017.88
7.0.40.0100.07720.02
7.0.30.0300.06020.23
7.0.20.0370.04720.10
7.0.10.0170.07020.09
7.0.00.0070.04720.06
5.6.280.0000.07720.91
5.6.210.0070.07320.54
5.6.200.0130.08318.21
5.6.190.0030.07020.54
5.6.180.0270.05720.61
5.6.170.0270.04020.43
5.6.160.0030.05320.47
5.6.150.0070.04018.16
5.6.140.0070.04018.19
5.6.130.0130.08018.19
5.6.120.0070.06021.00
5.6.110.0100.04321.01
5.6.100.0100.06321.01
5.6.90.0030.06020.88
5.6.80.0070.07320.48
5.6.70.0430.06020.37
5.5.350.0300.07320.44
5.5.340.0070.08018.08
5.5.330.0070.04720.18
5.5.320.0130.04720.44
5.5.310.0300.04020.32
5.5.300.0030.04017.99
5.5.290.0070.07317.95
5.5.280.0100.04020.80
5.5.270.0070.09020.77
5.5.260.0300.06720.87
5.5.250.0130.03020.55
5.5.240.0030.03720.04
5.4.450.0230.07019.32
5.4.440.0200.07719.46
5.4.430.0130.04319.30
5.4.420.0130.04719.30
5.4.410.0270.05019.29
5.4.400.0200.07719.00
5.4.390.0300.06719.31
5.4.380.0170.07319.00
5.4.370.0230.04018.95
5.4.360.0200.03719.19
5.4.350.0230.03319.25
5.4.340.0170.04019.09
5.4.320.0270.06718.84
5.4.310.0270.03319.00
5.4.300.0270.03018.95
5.4.290.0230.03719.13
5.4.280.0270.07319.13
5.4.270.0230.07019.06
5.4.260.0170.04019.13
5.4.250.0200.03718.97
5.4.240.0130.04319.21
5.4.230.0230.03319.13
5.4.220.0270.05319.30
5.4.210.0200.03319.16
5.4.200.0200.03318.94
5.4.190.0200.03318.97
5.4.180.0200.06718.98
5.4.170.0170.04019.07
5.4.160.0200.03319.04
5.4.150.0270.03318.81
5.4.140.0170.04016.51
5.4.130.0230.03016.36
5.4.120.0130.03716.33
5.4.110.0230.03016.46
5.4.100.0270.02716.54
5.4.90.0200.03016.25
5.4.80.0170.03716.39
5.4.70.0130.03716.39
5.4.60.0200.03016.23
5.4.50.0170.03716.23
5.4.40.0170.03716.43
5.4.30.0170.03316.58
5.4.20.0230.03016.43
5.4.10.0200.03716.50
5.4.00.0200.03715.78
5.3.290.0200.07314.54
5.3.280.0170.04014.61
5.3.270.0170.04014.66
5.3.260.0270.03314.45
5.3.250.0270.02714.59
5.3.240.0230.03014.65
5.3.230.0270.03014.56
5.3.220.0230.07014.40
5.3.210.0230.07314.41
5.3.200.0200.03714.63
5.3.190.0200.03314.47
5.3.180.0230.03314.43
5.3.170.0170.04314.51
5.3.160.0130.04014.51
5.3.150.0100.04314.46
5.3.140.0170.03714.65
5.3.130.0200.03714.56
5.3.120.0200.03314.38
5.3.110.0130.04014.40
5.3.100.0230.03014.13
5.3.90.0270.05713.98
5.3.80.0170.03713.96
5.3.70.0200.07313.92
5.3.60.0230.04713.77
5.3.50.0300.06713.99
5.3.40.0230.03013.77
5.3.30.0130.03713.78
5.3.20.0130.03713.55
5.3.10.0270.02713.50
5.3.00.0230.03013.55
5.2.170.0270.02711.22
5.2.160.0200.06011.05
5.2.150.0170.04011.00
5.2.140.0130.04010.99
5.2.130.0100.03311.12
5.2.120.0170.02711.06
5.2.110.0200.06011.15
5.2.100.0200.02311.05
5.2.90.0100.03310.96
5.2.80.0200.02311.25
5.2.70.0270.05711.18
5.2.60.0130.03711.00
5.2.50.0170.04710.88
5.2.40.0170.05710.93
5.2.30.0130.03010.82
5.2.20.0200.03010.90
5.2.10.0170.02310.77
5.2.00.0130.02710.61
5.1.60.0100.0339.89
5.1.50.0200.05310.04
5.1.40.0100.02710.10
5.1.30.0100.03710.49
5.1.20.0100.03010.32
5.1.10.0170.0539.94
5.1.00.0130.0409.94
5.0.50.0070.0208.45
5.0.40.0100.0438.57
5.0.30.0070.0308.30
5.0.20.0100.0438.15
5.0.10.0070.0178.25
5.0.00.0070.0408.15
4.4.90.0070.0278.15
4.4.80.0070.0338.15
4.4.70.0100.0378.15
4.4.60.0130.0278.15
4.4.50.0070.0378.15
4.4.40.0100.0508.15
4.4.30.0100.0238.15
4.4.20.0130.0308.15
4.4.10.0070.0308.15
4.4.00.0100.0538.15
4.3.110.0130.0338.15
4.3.100.0070.0178.15
4.3.90.0100.0308.15
4.3.80.0130.0438.15
4.3.70.0130.0338.15
4.3.60.0100.0278.15
4.3.50.0130.0178.15
4.3.40.0130.0238.15
4.3.30.0070.0278.15
4.3.20.0000.0338.15
4.3.10.0030.0378.15
4.3.00.0030.0178.15

preferences:
45.35 ms | 400 KiB | 5 Q