3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ExampleTrait { public function foo() { echo "foo"; } } class ExampleClass { use ExampleTrait { foo as private _foo; } public function foo() { $this->_foo(); echo "bar"; } } $example = new ExampleClass(); $example->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.4.120.0130.00822.32
8.4.110.0070.01322.69
8.4.100.0140.00617.52
8.4.90.0110.00919.23
8.4.80.0050.00417.80
8.4.70.0090.00617.98
8.4.60.0040.00518.51
8.4.50.0100.01017.79
8.4.40.0160.00317.84
8.4.30.0090.00920.79
8.4.20.0130.00618.95
8.4.10.0030.00623.61
8.3.250.0100.00919.06
8.3.240.0100.00916.63
8.3.230.0120.00816.56
8.3.220.0040.00417.13
8.3.210.0150.00416.52
8.3.200.0060.00316.63
8.3.190.0140.00517.32
8.3.180.0080.01018.54
8.3.170.0030.00518.83
8.3.160.0100.01016.73
8.3.150.0150.00317.14
8.3.140.0060.00317.11
8.3.130.0040.00418.54
8.3.120.0100.00718.79
8.3.110.0030.00618.17
8.3.100.0030.00516.59
8.3.90.0040.01126.77
8.3.80.0000.01016.75
8.3.70.0070.01418.56
8.3.60.0130.00318.47
8.3.50.0100.00320.07
8.3.40.0070.01420.31
8.3.30.0140.00318.71
8.3.20.0030.00624.18
8.3.10.0040.00424.66
8.3.00.0070.00026.16
8.2.290.0080.00720.42
8.2.280.0090.00618.57
8.2.270.0110.00716.65
8.2.260.0080.00017.36
8.2.250.0030.00616.60
8.2.240.0060.01019.09
8.2.230.0040.00420.94
8.2.220.0050.00524.06
8.2.210.0050.00326.77
8.2.200.0060.00318.16
8.2.190.0150.00618.02
8.2.180.0090.01325.92
8.2.170.0150.00622.96
8.2.160.0060.00922.96
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00819.36
8.2.110.0120.00420.57
8.2.100.0060.00617.78
8.2.90.0030.00517.75
8.2.80.0000.00818.64
8.2.70.0040.00417.63
8.2.60.0090.00017.50
8.2.50.0040.00718.07
8.2.40.0040.00420.07
8.2.30.0040.00417.94
8.2.20.0070.00019.28
8.2.10.0000.00718.07
8.2.00.0000.00719.27
8.1.330.0100.00821.98
8.1.320.0160.00416.13
8.1.310.0120.00316.53
8.1.300.0090.00016.31
8.1.290.0030.00630.84
8.1.280.0030.01325.92
8.1.270.0060.00324.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00320.90
8.1.230.0110.00020.89
8.1.220.0000.00818.59
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0050.00317.39
8.1.180.0000.00818.10
8.1.170.0030.00618.71
8.1.160.0040.00419.01
8.1.150.0050.00318.67
8.1.140.0070.00017.51
8.1.130.0050.00217.33
8.1.120.0040.00417.48
8.1.110.0070.00617.39
8.1.100.0110.00317.39
8.1.90.0090.00517.45
8.1.80.0090.00517.37
8.1.70.0080.00817.33
8.1.60.0150.00517.52
8.1.50.0170.00217.50
8.1.40.0160.00217.53
8.1.30.0140.00617.63
8.1.20.0150.00217.64
8.1.10.0120.00717.52
8.1.00.0130.00317.46
8.0.300.0000.00718.77
8.0.290.0080.00016.63
8.0.280.0070.00018.38
8.0.270.0030.00616.86
8.0.260.0030.00318.48
8.0.250.0070.00016.97
8.0.240.0120.00416.79
8.0.230.0110.00416.74
8.0.220.0110.00416.82
8.0.210.0130.00216.79
8.0.200.0100.00616.83
8.0.190.0090.00516.82
8.0.180.0070.00816.76
8.0.170.0090.00616.87
8.0.160.0110.00416.80
8.0.150.0120.00616.80
8.0.140.0130.00416.78
8.0.130.0110.00616.72
8.0.120.0090.00716.75
8.0.110.0110.00416.81
8.0.100.0080.00916.76
8.0.90.0100.00616.83
8.0.80.0150.00216.88
8.0.70.0100.00516.81
8.0.60.0130.00316.76
8.0.50.0090.00616.75
8.0.30.0100.00616.81
8.0.20.0100.00616.95
8.0.10.0090.00716.95
7.4.330.0050.00015.55
7.4.320.0080.00816.39
7.4.300.0140.00216.58
7.4.290.0060.00716.55
7.4.280.0090.00516.57
7.4.270.0140.00016.38
7.4.260.0090.00516.47
7.4.250.0100.00516.46
7.4.240.0110.00516.52
7.4.230.0120.00516.56
7.4.220.0120.00016.34
7.4.210.0060.00616.51
7.4.200.0080.00516.50
7.4.190.0090.00416.57
7.4.180.0100.00416.40
7.4.160.0100.00316.39
7.4.150.0090.00516.40
7.4.140.0120.00216.34
7.4.130.0090.00516.49
7.4.120.0110.00416.50
7.4.110.0110.00416.32
7.4.100.0070.00716.60
7.4.90.0110.00516.42
7.4.80.0100.00516.52
7.4.70.0080.00716.32
7.4.60.0120.00316.46
7.4.50.0130.00116.34
7.4.40.0060.00616.33
7.4.30.0100.00116.42
7.4.20.0060.00616.39
7.4.10.0060.00616.47
7.4.00.0070.00516.44

preferences:
95.36 ms | 403 KiB | 5 Q