3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait CanWhatever { public function doStuff() { return 'result!'; } } class X { use CanWhatever; } $x = new X(); echo $x->doStuff(); echo "\n \$x has "; echo ($x instanceof CanWhatever) ? 'the trait' : 'no trait';

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.70.0110.00416.38
8.3.60.0090.00616.50
8.3.50.0090.00617.33
8.3.40.0110.00418.71
8.3.30.0120.00318.59
8.3.20.0050.00320.05
8.3.10.0040.00422.09
8.3.00.0030.00523.54
8.2.190.0100.01016.58
8.2.180.0030.01018.13
8.2.170.0120.00322.96
8.2.160.0140.00020.47
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0080.00026.16
8.2.120.0000.00721.04
8.2.110.0100.00021.00
8.2.100.0040.00818.22
8.2.90.0000.00819.22
8.2.80.0030.00617.97
8.2.70.0030.00617.63
8.2.60.0040.00417.80
8.2.50.0040.00418.22
8.2.40.0040.00420.54
8.2.30.0040.00419.36
8.2.20.0040.00417.94
8.2.10.0040.00418.07
8.2.00.0030.00618.09
8.1.280.0070.01025.92
8.1.270.0000.00723.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00622.76
8.1.230.0100.00020.45
8.1.220.0050.00517.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0050.00318.49
8.1.160.0020.00518.84
8.1.150.0040.00420.19
8.1.140.0000.00719.61
8.1.130.0050.00318.97
8.1.120.0020.00517.42
8.1.110.0050.00217.41
8.1.100.0000.00717.43
8.1.90.0070.00017.45
8.1.80.0000.00717.36
8.1.70.0030.00317.47
8.1.60.0050.00317.43
8.1.50.0000.00917.55
8.1.40.0040.00417.53
8.1.30.0030.00617.61
8.1.20.0040.00417.71
8.1.10.0030.00517.55
8.1.00.0060.00317.52
8.0.300.0080.00019.13
8.0.290.0070.00016.75
8.0.280.0000.00718.40
8.0.270.0070.00017.20
8.0.260.0040.00418.34
8.0.250.0000.00716.83
8.0.240.0030.00516.96
8.0.230.0030.00316.92
8.0.220.0000.00716.93
8.0.210.0070.00016.78
8.0.200.0030.00316.88
8.0.190.0050.00316.82
8.0.180.0000.00716.95
8.0.170.0000.00716.95
8.0.160.0000.00716.82
8.0.150.0030.00316.80
8.0.140.0000.00816.82
8.0.130.0030.00313.36
8.0.120.0080.00016.87
8.0.110.0030.00616.94
8.0.100.0070.00016.72
8.0.90.0000.00716.96
8.0.80.0120.00316.85
8.0.70.0040.00416.92
8.0.60.0000.00816.87
8.0.50.0040.00416.92
8.0.30.0080.01217.23
8.0.20.0110.00917.40
8.0.10.0030.00516.97
8.0.00.0220.00516.79
7.4.330.0050.00015.55
7.4.320.0030.00316.51
7.4.300.0060.00016.57
7.4.290.0060.00016.47
7.4.280.0000.00716.49
7.4.270.0000.00716.52
7.4.260.0070.00016.53
7.4.250.0090.00016.48
7.4.240.0040.00416.42
7.4.230.0070.00016.33
7.4.220.0120.00616.60
7.4.210.0030.01116.53
7.4.200.0030.00516.38
7.4.160.0080.00716.30
7.4.150.0100.00717.40
7.4.140.0090.01017.86
7.4.130.0070.01316.46
7.4.120.0120.00916.54
7.4.110.0070.01116.56
7.4.100.0070.01116.35
7.4.90.0080.00816.34
7.4.80.0030.01719.39
7.4.70.0030.01316.42
7.4.60.0040.01216.55
7.4.50.0110.00816.31
7.4.40.0070.01016.44
7.4.30.0040.01216.44
7.4.00.0060.01014.85
7.3.330.0050.00013.30
7.3.320.0000.00713.30
7.3.310.0030.00316.32
7.3.300.0030.00316.32
7.3.290.0030.01016.29
7.3.280.0060.01116.28
7.3.270.0140.00317.40
7.3.260.0110.01016.52
7.3.250.0020.01416.40
7.3.240.0100.00816.48
7.3.230.0030.01416.44
7.3.210.0090.00616.60
7.3.200.0000.01616.42
7.3.190.0120.00916.18
7.3.180.0060.01516.70
7.3.170.0110.00516.44
7.3.160.0080.00816.39
7.3.120.0050.01314.86
7.3.110.0070.00914.82
7.3.100.0100.00614.82
7.3.90.0090.00614.75
7.3.80.0090.00714.88
7.3.70.0060.00514.79
7.3.60.0060.00814.78
7.3.50.0040.01114.68
7.3.40.0050.00614.75
7.3.30.0070.00614.59
7.3.20.0050.01216.62
7.3.10.0050.00916.68
7.3.00.0080.00516.79
7.2.330.0060.01216.62
7.2.320.0100.01316.61
7.2.310.0030.01316.75
7.2.300.0090.01316.57
7.2.290.0190.00416.60
7.2.250.0070.01015.27
7.2.240.0050.01414.93
7.2.230.0110.00514.86
7.2.220.0040.01014.98
7.2.210.0050.00914.91
7.2.200.0060.00814.92
7.2.190.0040.00814.93
7.2.180.0060.00614.72
7.2.170.0060.00615.08
7.2.160.0000.01714.75
7.2.150.0070.00717.04
7.2.140.0070.00716.82
7.2.130.0020.01516.89
7.2.120.0040.01016.85
7.2.110.0120.00416.83
7.2.100.0050.00816.79
7.2.90.0040.00916.91
7.2.80.0040.00916.73
7.2.70.0090.00616.99
7.2.60.0050.00716.89
7.2.50.0080.00516.81
7.2.40.0050.00816.92
7.2.30.0050.01216.86
7.2.20.0020.01016.78
7.2.10.0060.00616.87
7.2.00.0020.01116.75
7.1.330.0050.00915.61
7.1.320.0080.00615.49
7.1.310.0080.00615.45
7.1.300.0020.00815.82
7.1.290.0040.00915.72
7.1.280.0040.00815.63
7.1.270.0050.00915.66
7.1.260.0060.01015.48
7.1.250.0100.00415.79
7.1.200.0080.00415.44
7.1.90.0060.01218.02
7.1.80.0050.00918.02
7.1.70.0050.00817.21
7.1.60.0190.01535.05
7.1.50.0170.00834.44
7.1.40.0260.01034.28
7.1.30.0150.01534.41
7.1.20.0200.00734.40
7.1.10.0000.01716.43
7.1.00.0040.01216.70
7.0.230.0030.01017.78
7.0.220.0100.00317.65
7.0.210.0040.00816.76
7.0.200.0040.01216.60
7.0.190.0060.00616.63
7.0.180.0060.00916.22
7.0.170.0030.01016.27
7.0.160.0100.00616.25
7.0.150.0030.00916.27
7.0.140.0030.00916.34
7.0.130.0140.00816.68
7.0.120.0090.00616.53
7.0.110.0120.00016.38
7.0.100.0090.00916.23
7.0.90.0090.00616.35
7.0.80.0060.00616.14
7.0.70.0060.00616.48
7.0.60.0060.00616.20
7.0.50.0030.00916.39
7.0.40.0030.01016.43
7.0.30.0060.00616.48
7.0.20.0000.01216.37
7.0.10.0000.01216.31
7.0.00.0070.00716.13

preferences:
72.56 ms | 401 KiB | 5 Q