3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait foo {} class bar { use foo; } $a = new bar(); var_dump($a instanceof foo);

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.0100.00716.48
8.3.50.0100.00817.32
8.3.40.0030.01218.62
8.3.30.0110.00318.48
8.3.20.0050.00318.63
8.3.10.0050.00318.83
8.3.00.0090.00019.38
8.2.180.0090.01216.50
8.2.170.0080.00822.96
8.2.160.0070.00718.91
8.2.150.0110.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.66
8.2.110.0090.00021.11
8.2.100.0080.00417.91
8.2.90.0070.00319.22
8.2.80.0050.00318.05
8.2.70.0030.00617.49
8.2.60.0040.00417.93
8.2.50.0040.00417.80
8.2.40.0000.00919.35
8.2.30.0060.00317.60
8.2.20.0040.00717.59
8.2.10.0040.00417.58
8.2.00.0040.00417.67
8.1.280.0140.00725.92
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0090.00023.92
8.1.230.0090.00317.77
8.1.220.0030.00717.78
8.1.210.0050.00318.77
8.1.200.0000.00917.25
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0030.00617.62
8.1.160.0040.00418.92
8.1.150.0000.00718.51
8.1.140.0040.00417.50
8.1.130.0030.00317.92
8.1.120.0040.00417.45
8.1.110.0070.00017.42
8.1.100.0040.00417.41
8.1.90.0040.00417.46
8.1.80.0030.00517.40
8.1.70.0000.00717.39
8.1.60.0000.00817.50
8.1.50.0030.00517.40
8.1.40.0040.00417.51
8.1.30.0030.00517.65
8.1.20.0060.00317.47
8.1.10.0070.00017.57
8.1.00.0040.00417.46
8.0.300.0050.00318.77
8.0.290.0000.00816.75
8.0.280.0030.00518.49
8.0.270.0030.00317.24
8.0.260.0030.00316.80
8.0.250.0050.00316.94
8.0.240.0100.00016.91
8.0.230.0030.00316.83
8.0.220.0070.00016.91
8.0.210.0000.00716.79
8.0.200.0030.00316.83
8.0.190.0070.00016.93
8.0.180.0070.00016.96
8.0.170.0100.00016.85
8.0.160.0070.00016.91
8.0.150.0030.00616.77
8.0.140.0000.00816.73
8.0.130.0030.00313.32
8.0.120.0050.00716.79
8.0.110.0000.00716.70
8.0.100.0060.00316.91
8.0.90.0080.00016.70
8.0.80.0040.01216.82
8.0.70.0050.00316.86
8.0.60.0000.00816.93
8.0.50.0040.00416.87
8.0.30.0080.00817.33
8.0.20.0090.00916.79
8.0.10.0040.00416.90
8.0.00.0100.00716.84
7.4.330.0020.00213.09
7.4.320.0000.00616.60
7.4.300.0060.00016.43
7.4.290.0000.00716.49
7.4.280.0040.00416.36
7.4.270.0040.00316.48
7.4.260.0060.00013.29
7.4.250.0040.00416.57
7.4.240.0070.00016.62
7.4.230.0040.00416.40
7.4.220.0090.01316.57
7.4.210.0100.00616.59
7.4.200.0040.00416.34
7.4.190.0000.00816.69
7.4.160.0030.01316.32
7.4.150.0140.00316.55
7.4.140.0070.01116.41
7.4.130.0140.00616.53
7.4.120.0030.01416.36
7.4.110.0090.00916.48
7.4.100.0170.00616.52
7.4.90.0060.01216.51
7.4.80.0040.01319.39
7.4.70.0030.01616.39
7.4.60.0040.01116.58
7.4.50.0000.01216.24
7.4.40.0000.01116.45
7.4.30.0130.00316.51
7.4.00.0090.00615.11
7.3.330.0000.00613.05
7.3.320.0000.00813.09
7.3.310.0040.00416.24
7.3.300.0030.00316.14
7.3.290.0090.00816.22
7.3.280.0070.01016.26
7.3.270.0100.00716.36
7.3.260.0090.00916.27
7.3.250.0030.01516.42
7.3.240.0090.00916.35
7.3.230.0140.00716.15
7.3.210.0110.00716.47
7.3.200.0040.01216.46
7.3.190.0100.00716.56
7.3.180.0060.01316.32
7.3.170.0070.01016.54
7.3.160.0090.00616.30
7.3.120.0030.01314.62
7.3.10.0050.00916.16
7.3.00.0060.00916.54
7.2.330.0110.00716.46
7.2.320.0100.00716.60
7.2.310.0110.00716.54
7.2.300.0110.00616.56
7.2.290.0170.00016.71
7.2.130.0030.01016.74
7.2.120.0110.00416.57
7.2.110.0100.00616.88
7.2.100.0200.00316.76
7.2.90.0000.00916.85
7.2.80.0000.01216.84
7.2.70.0120.00416.66
7.2.60.0080.00416.60
7.2.50.0230.00416.80
7.2.40.0200.00316.38
7.2.30.0110.00716.73
7.2.20.0170.00716.74
7.2.10.0100.00516.65
7.2.00.0070.01017.96
7.1.250.0050.00515.42
7.1.100.0060.00618.03
7.1.70.0090.00617.14
7.1.60.0110.01419.30
7.1.50.0130.00716.62
7.1.00.0130.06722.51
7.0.200.0040.01116.73
7.0.140.0030.07321.98
7.0.120.0100.06322.03
7.0.60.0070.08720.07
7.0.50.0100.08017.86
7.0.40.0030.04320.15
7.0.30.0300.08320.17
7.0.20.0230.06720.11
7.0.10.0200.06720.10
7.0.00.0100.07320.31
5.6.280.0030.07021.06
5.6.210.0130.07720.69
5.6.200.0100.05718.19
5.6.190.0100.06320.33
5.6.180.0370.06020.38
5.6.170.0170.05720.48
5.6.160.0070.07720.52
5.6.150.0130.07318.25
5.6.140.0130.06318.11
5.6.130.0130.04018.17
5.6.120.0070.07020.98
5.6.110.0030.04321.00
5.6.100.0070.04321.02
5.6.90.0070.08720.95
5.6.80.0130.06720.52
5.6.70.0300.07020.40
5.5.350.0270.07020.48
5.5.340.0200.05717.97
5.5.330.0100.07020.21
5.5.320.0030.08320.43
5.5.310.0230.08720.37
5.5.300.0100.05317.94
5.5.290.0070.07718.01
5.5.280.0030.04320.77
5.5.270.0030.07720.93
5.5.260.0030.04020.97
5.5.250.0030.04020.71
5.5.240.0070.07320.18
5.4.450.0070.06719.51
5.4.440.0000.07319.41
5.4.430.0030.05319.46
5.4.420.0070.07719.37
5.4.410.0070.05019.04
5.4.400.0100.03319.25
5.4.390.0070.07719.12
5.4.380.0030.07018.98
5.4.370.0030.04318.85
5.4.360.0130.07319.08
5.4.350.0030.04019.20
5.4.340.0100.04718.92
5.4.320.0070.06719.15
5.4.310.0100.04719.14
5.4.300.0070.06318.87
5.4.290.0070.04718.97
5.4.280.0070.08019.00
5.4.270.0030.07719.17
5.4.260.0100.07019.14
5.4.250.0070.03719.23
5.4.240.0100.07719.11
5.4.230.0030.06019.14
5.4.220.0130.06719.00
5.4.210.0030.05719.23
5.4.200.0070.07719.14
5.4.190.0100.07319.11
5.4.180.0070.03718.99
5.4.170.0070.04719.11
5.4.160.0100.06719.13
5.4.150.0030.08319.26
5.4.140.0100.03316.55
5.4.130.0170.06316.42
5.4.120.0070.06016.41
5.4.110.0100.08016.48
5.4.100.0100.03316.28
5.4.90.0070.06716.43
5.4.80.0030.07716.65
5.4.70.0030.06316.45
5.4.60.0100.03716.40
5.4.50.0130.04016.64
5.4.40.0130.02716.44
5.4.30.0100.07016.43
5.4.20.0070.06716.27
5.4.10.0070.04016.38
5.4.00.0200.06015.86
5.3.290.0100.07314.59
5.3.280.0030.06014.54
5.3.270.0030.08014.54
5.3.260.0030.05714.53
5.3.250.0070.07014.53
5.3.240.0100.04014.49
5.3.230.0170.05714.56
5.3.220.0100.04014.39
5.3.210.0100.03314.49
5.3.200.0130.03014.51
5.3.190.0030.05714.50
5.3.180.0070.07714.38
5.3.170.0130.03314.49
5.3.160.0030.04014.65
5.3.150.0100.06014.50
5.3.140.0100.08014.46
5.3.130.0070.05314.45
5.3.120.0170.06314.53
5.3.110.0070.04014.65
5.3.100.0000.04313.98
5.3.90.0100.05313.82
5.3.80.0030.08313.91
5.3.70.0130.06313.85
5.3.60.0170.05013.93
5.3.50.0000.04713.87
5.3.40.0070.05313.87
5.3.30.0100.03713.83
5.3.20.0030.04713.51
5.3.10.0100.06313.59
5.3.00.0070.07713.57
5.2.170.0070.06711.03
5.2.160.0000.04011.04
5.2.150.0070.04011.15
5.2.140.0130.05311.02
5.2.130.0030.06311.07
5.2.120.0070.05710.95
5.2.110.0030.04711.00
5.2.100.0100.06011.09
5.2.90.0030.06711.18
5.2.20.0030.03710.85
5.2.10.0070.04310.85
5.2.00.0030.03010.71
5.1.60.0000.04710.00
5.1.50.0030.05710.00
5.1.40.0070.0539.93
5.1.30.0070.04010.34
5.1.20.0000.03310.20
5.1.10.0030.04310.04
5.1.00.0030.04310.01
5.0.50.0100.0278.59
5.0.40.0000.0478.46
5.0.30.0030.0438.21
5.0.20.0030.0238.11
5.0.10.0000.0238.32
5.0.00.0030.0308.05
4.4.70.0030.0137.83
4.4.60.0000.0177.83
4.4.50.0070.0237.83
4.4.40.0100.0237.83
4.4.30.0030.0207.83
4.4.20.0030.0337.83
4.4.10.0000.0207.83
4.4.00.0030.0537.83
4.3.110.0000.0207.83
4.3.100.0000.0237.83
4.3.90.0000.0177.83
4.3.80.0000.0577.83
4.3.70.0070.0307.83
4.3.60.0000.0207.83
4.3.50.0000.0177.83
4.3.40.0000.0237.83
4.3.30.0000.0207.83
4.3.20.0000.0237.83
4.3.10.0070.0307.83
4.3.00.0030.0177.83

preferences:
52.14 ms | 400 KiB | 5 Q