3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo2{ function foo() { echo 123; }} function foo(Foo$bar) { $bar->foo(); } foo(new Foo2);

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.0110.00416.75
8.3.50.0120.00316.41
8.3.40.0120.00318.90
8.3.30.0120.00318.72
8.3.20.0040.00420.16
8.3.10.0080.00021.77
8.3.00.0060.00317.78
8.2.180.0090.01216.63
8.2.170.0130.00322.96
8.2.160.0090.00620.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00420.99
8.2.120.0000.00726.35
8.2.110.0060.00320.93
8.2.100.0040.00717.97
8.2.90.0030.00519.28
8.2.80.0050.00317.97
8.2.70.0040.00817.50
8.2.60.0040.00417.93
8.2.50.0090.00018.10
8.2.40.0030.00522.18
8.2.30.0000.00719.12
8.2.20.0040.00417.93
8.2.10.0040.00417.99
8.2.00.0040.00417.91
8.1.270.0060.00323.91
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.77
8.1.230.0040.00719.15
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.22
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0000.00818.54
8.1.160.0000.00718.97
8.1.150.0040.00418.68
8.1.140.0000.00819.35
8.1.130.0030.00518.67
8.1.120.0040.00417.27
8.1.110.0040.00417.36
8.1.100.0050.00317.30
8.1.90.0000.00717.21
8.1.80.0030.00317.22
8.1.70.0030.00517.36
8.1.60.0060.00317.56
8.1.50.0000.00817.40
8.1.40.0040.00417.36
8.1.30.0000.00817.46
8.1.20.0000.00717.59
8.1.10.0040.00417.49
8.1.00.0000.00717.41
8.0.300.0000.00718.77
8.0.290.0040.00416.59
8.0.280.0000.00718.29
8.0.270.0080.00017.20
8.0.260.0030.00316.73
8.0.250.0000.00616.91
8.0.240.0050.00317.00
8.0.230.0070.00017.01
8.0.220.0030.00516.79
8.0.210.0040.00416.88
8.0.200.0000.00716.86
8.0.190.0030.00616.86
8.0.180.0040.00416.95
8.0.170.0070.00016.90
8.0.160.0030.00316.90
8.0.150.0000.00716.87
8.0.140.0000.00716.71
8.0.130.0050.00013.34
8.0.120.0070.00016.88
8.0.110.0040.00416.74
8.0.100.0070.00016.92
8.0.90.0040.00416.91
8.0.80.0060.00916.93
8.0.70.0040.00416.77
8.0.60.0000.00716.93
8.0.50.0040.00416.98
8.0.30.0130.00616.77
8.0.20.0100.00917.40
8.0.10.0040.00416.89
8.0.00.0140.00716.65
7.4.330.0000.00515.55
7.4.320.0030.00316.47
7.4.300.0000.00716.58
7.4.290.0030.00316.50
7.4.280.0070.00016.43
7.4.270.0030.00316.56
7.4.260.0000.00513.15
7.4.250.0030.00616.49
7.4.240.0040.00416.51
7.4.230.0070.00016.65
7.4.220.0070.01016.46
7.4.210.0080.00616.49
7.4.200.0000.00716.32
7.4.160.0150.00216.44
7.4.150.0170.00317.40
7.4.140.0130.00717.86
7.4.130.0100.01016.25
7.4.120.0130.00616.46
7.4.110.0030.02016.48
7.4.100.0100.01316.47
7.4.90.0070.01016.59
7.4.80.0110.00719.39
7.4.70.0080.00816.41
7.4.60.0080.00816.54
7.4.50.0000.01116.55
7.4.40.0140.00316.26
7.4.30.0100.01016.58
7.4.00.0070.01015.11
7.3.330.0070.00013.29
7.3.320.0050.00013.11
7.3.310.0070.00016.31
7.3.300.0070.00016.30
7.3.290.0030.00316.25
7.3.280.0080.00916.27
7.3.270.0130.00717.40
7.3.260.0110.00716.52
7.3.250.0110.00916.46
7.3.240.0100.00816.30
7.3.230.0070.01116.26
7.3.210.0070.01016.25
7.3.200.0160.00016.67
7.3.190.0090.00616.49
7.3.180.0120.01016.25
7.3.170.0000.01616.38
7.3.160.0080.00816.43
7.2.330.0090.00916.56
7.2.320.0180.00416.23
7.2.310.0100.00716.53
7.2.300.0150.00316.21
7.2.290.0000.01816.43
7.2.110.0080.00816.28
7.2.60.0030.01316.51
7.2.00.0000.01418.94
7.1.200.0040.00415.60
7.1.100.0000.01117.91
7.1.70.0110.00316.74
7.1.60.0190.01034.96
7.1.50.0280.00334.76
7.1.40.0250.00634.34
7.1.30.0170.02034.39
7.1.20.0210.00834.61
7.1.10.0060.01416.46
7.1.00.0040.01116.57
7.0.200.0110.00416.76
7.0.190.0030.01216.58
7.0.180.0000.01416.22
7.0.170.0060.00816.25
7.0.160.0090.00616.21
7.0.150.0030.01316.34
7.0.140.0030.01216.36
7.0.130.0030.01316.34
7.0.120.0100.00616.46
7.0.110.0080.00816.32
7.0.100.0100.01516.02
7.0.90.0110.01116.10
7.0.80.0110.01316.26
7.0.70.0100.01016.11
7.0.60.0140.00716.04
7.0.50.0110.00816.19
7.0.40.0080.01216.45
7.0.30.0060.01216.26
7.0.20.0060.01516.44
7.0.10.0050.01116.36
7.0.00.0060.00916.07

preferences:
48.8 ms | 400 KiB | 5 Q