3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); trait A { public static function bla(): string { return 'bla'; } } function bar(): string { return A::bla(); } function foo(): string { return (new class { use A; } )::bla(); } echo bar(); echo 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.5.30.0110.00917.48
8.5.20.0100.00817.85
8.5.10.0100.00816.76
8.5.00.0110.00920.16
8.4.180.0100.01219.75
8.4.170.0100.01123.82
8.4.160.0110.01023.86
8.4.150.0060.00716.94
8.4.140.0150.00617.87
8.4.130.0120.00817.64
8.4.120.0060.00520.70
8.4.110.0110.00820.69
8.4.100.0120.00818.72
8.4.90.0100.01020.71
8.4.80.0110.00918.93
8.4.70.0120.00717.98
8.4.60.0120.00818.83
8.4.50.0110.01018.45
8.4.40.0060.01318.81
8.4.30.0140.00720.34
8.4.20.0140.00717.95
8.4.10.0120.00319.33
8.3.300.0100.01020.71
8.3.290.0100.01120.76
8.3.280.0130.00718.49
8.3.270.0120.00816.72
8.3.260.0090.00916.64
8.3.250.0120.00618.71
8.3.240.0090.00916.72
8.3.230.0080.00816.51
8.3.220.0150.00218.85
8.3.210.0110.01016.80
8.3.200.0120.00916.83
8.3.190.0050.00316.94
8.3.180.0110.00816.91
8.3.170.0120.00620.62
8.3.160.0070.01116.59
8.3.150.0070.01118.99
8.3.140.0060.00918.36
8.3.130.0060.00318.42
8.3.120.0060.00920.84
8.3.110.0000.00820.94
8.3.100.0090.00016.55
8.3.90.0150.00426.77
8.3.80.0060.00318.55
8.3.70.0070.00716.58
8.3.60.0060.00918.31
8.3.50.0110.00723.67
8.3.40.0130.00721.78
8.3.30.0110.00418.75
8.3.20.0070.00024.18
8.3.10.0000.00724.66
8.3.00.0040.00426.16
8.2.300.0120.00922.18
8.2.290.0110.00820.39
8.2.280.0120.00818.19
8.2.270.0000.00817.31
8.2.260.0070.00316.59
8.2.250.0040.00416.71
8.2.240.0060.00316.93
8.2.230.0040.00422.58
8.2.220.0040.00424.06
8.2.210.0070.00726.77
8.2.200.0040.00416.50
8.2.190.0100.01016.58
8.2.180.0130.00625.92
8.2.170.0120.00322.96
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0000.00724.66
8.2.130.0110.00326.16
8.2.120.0050.00226.16
8.2.110.0060.00320.47
8.2.100.0040.00817.91
8.2.90.0060.00317.63
8.2.80.0050.00318.69
8.2.70.0000.00817.50
8.2.60.0040.00717.92
8.2.50.0040.00418.07
8.2.40.0000.00818.01
8.2.30.0040.00417.87
8.2.20.0050.00317.91
8.2.10.0040.00419.18
8.2.00.0040.00419.23
8.1.340.0110.01021.66
8.1.330.0120.00721.70
8.1.320.0130.00716.21
8.1.310.0090.00916.18
8.1.300.0040.01120.03
8.1.290.0030.00718.88
8.1.280.0140.00725.92
8.1.270.0080.00024.66
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0100.00018.94
8.1.230.0000.01117.64
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.25
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0030.00618.82
8.1.150.0040.00418.73
8.1.140.0000.00820.57
8.1.130.0060.00419.08
8.1.120.0030.00517.36
8.1.110.0000.00817.38
8.1.100.0040.00417.41
8.1.90.0000.00717.41
8.1.80.0090.00217.29
8.1.70.0030.00317.41
8.1.60.0030.00517.52
8.1.50.0050.00517.34
8.1.40.0040.00417.41
8.1.30.0040.00417.45
8.1.20.0000.00817.48
8.1.10.0040.00417.41
8.1.00.0040.00417.40
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00818.30
8.0.270.0030.00318.00
8.0.260.0000.00718.57
8.0.250.0030.00316.93
8.0.240.0030.00316.96
8.0.230.0070.00016.96
8.0.220.0030.00316.89
8.0.210.0050.00216.86
8.0.200.0070.00016.99
8.0.190.0000.00716.99
8.0.180.0030.00516.75
8.0.170.0040.00416.91
8.0.160.0070.00016.84
8.0.150.0000.00716.86
8.0.140.0060.00316.84
8.0.130.0000.00513.30
8.0.120.0030.00516.90
8.0.110.0000.00716.84
8.0.100.0040.00416.83
8.0.90.0070.00016.71
8.0.80.0060.00916.83
8.0.70.0050.00216.89
8.0.60.0040.00416.73
8.0.50.0040.00416.96
8.0.30.0060.01017.28
8.0.20.0130.00817.03
8.0.10.0040.00417.07
8.0.00.0070.01016.74
7.4.330.0000.00615.55
7.4.320.0030.00316.63
7.4.300.0000.00716.41
7.4.290.0070.00016.29
7.4.280.0000.00716.64
7.4.270.0030.00316.50
7.4.260.0030.00313.30
7.4.250.0050.00216.41
7.4.240.0030.00316.45
7.4.230.0050.00316.57
7.4.220.0000.00716.49
7.4.210.0100.00716.53
7.4.200.0070.00016.45
7.4.130.0060.01116.56
7.4.120.0160.00316.38
7.4.110.0080.01216.15
7.4.100.0120.00916.33
7.4.90.0100.00816.40
7.4.80.0160.01016.37
7.4.70.0130.00916.38
7.4.60.0110.00816.27
7.4.50.0130.00816.12
7.4.40.0120.00616.35
7.4.30.0170.00616.23
7.4.20.0160.00616.52
7.4.10.0130.01016.25
7.4.00.0160.00816.27
7.3.330.0040.00416.27
7.3.320.0030.00313.30
7.3.310.0030.00616.33
7.3.300.0030.00516.25
7.3.290.0040.01616.32
7.3.260.0120.00616.44
7.3.240.0090.00916.36
7.3.230.0110.00916.56
7.3.220.0070.01116.54
7.3.210.0130.00516.24
7.3.200.0140.00916.32
7.3.190.0160.00816.39
7.3.180.0100.01416.15
7.3.170.0160.00816.39
7.3.160.0140.00416.33
7.3.150.0080.01616.26
7.3.140.0140.00516.33
7.3.130.0080.01416.43
7.3.120.0030.01616.36
7.3.110.0150.00916.37
7.3.100.0160.00616.39
7.3.90.0180.00416.48
7.3.80.0100.00816.49
7.3.70.0130.01016.30
7.3.60.0060.01516.30
7.3.50.0070.01316.30
7.3.40.0120.00816.29
7.3.30.0090.01316.32
7.3.20.0090.01216.51
7.3.10.0120.00616.37
7.3.00.0060.01216.26
7.2.340.0100.01016.40
7.2.330.0140.00316.54
7.2.320.0190.01316.71
7.2.310.0080.01116.16
7.2.300.0170.00716.32
7.2.290.0090.00916.42
7.2.280.0130.00916.70
7.2.270.0170.00616.40
7.2.260.0230.00016.59
7.2.250.0070.01416.38
7.2.240.0040.01516.32
7.2.230.0130.00916.57
7.2.220.0140.00516.69
7.2.210.0130.00916.66
7.2.200.0100.00916.54
7.2.190.0140.00416.33
7.2.180.0120.00816.56
7.2.170.0110.00916.54
7.2.160.0150.00316.61
7.2.150.0140.00716.61
7.2.140.0150.00316.63
7.2.130.0040.01416.54
7.2.120.0030.01916.61
7.2.110.0090.00916.43
7.2.100.0080.01216.53
7.2.90.0000.02216.56
7.2.80.0080.01216.66
7.2.70.0130.01016.64
7.2.60.0040.02116.64
7.2.50.0060.01416.61
7.2.40.0150.00916.56
7.2.30.0280.01616.63
7.2.20.0130.01016.46
7.2.10.0140.01016.38
7.2.00.0160.00316.62

preferences:
38.04 ms | 1495 KiB | 5 Q