3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function foo() { } } class B extends A { function foo(WTF $x = null) { print __METHOD__; } } (new B)->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.0120.00719.02
8.5.20.0090.00819.36
8.5.10.0110.00616.74
8.5.00.0120.01019.96
8.4.180.0160.00722.29
8.4.170.0130.01021.97
8.4.160.0150.00621.98
8.4.150.0080.00416.89
8.4.140.0120.00917.41
8.4.130.0130.00818.65
8.4.120.0130.00719.44
8.4.110.0100.00922.23
8.4.100.0120.00717.81
8.4.90.0100.00720.66
8.4.80.0090.01018.97
8.4.70.0050.00320.77
8.4.60.0110.00920.67
8.4.50.0080.01120.44
8.4.40.0030.01617.68
8.4.30.0150.00617.63
8.4.20.0090.00919.44
8.4.10.0100.01019.40
8.3.300.0140.00618.25
8.3.290.0110.00820.80
8.3.280.0110.01118.28
8.3.270.0100.01016.41
8.3.260.0120.00716.66
8.3.250.0080.00516.68
8.3.240.0090.01018.84
8.3.230.0130.00618.25
8.3.220.0100.00818.80
8.3.210.0150.00518.31
8.3.200.0040.00516.32
8.3.190.0090.00617.23
8.3.180.0130.00719.04
8.3.170.0070.01017.29
8.3.160.0180.00016.47
8.3.150.0050.00318.25
8.3.140.0000.00716.61
8.3.130.0080.00018.41
8.3.120.0090.00620.55
8.3.110.0000.00820.94
8.3.100.0150.00018.10
8.3.90.0000.00826.77
8.3.80.0060.00617.97
8.3.70.0160.01016.63
8.3.60.0040.01518.18
8.3.50.0080.00617.46
8.3.40.0110.00418.54
8.3.30.0130.00718.65
8.3.20.0000.00820.30
8.3.10.0040.00421.60
8.3.00.0060.00319.13
8.2.300.0130.00820.29
8.2.290.0060.00416.71
8.2.280.0080.01118.39
8.2.270.0160.00318.46
8.2.260.0030.00517.15
8.2.250.0050.00316.72
8.2.240.0070.00317.15
8.2.230.0160.00322.58
8.2.220.0060.00324.06
8.2.210.0040.00426.77
8.2.200.0080.00016.38
8.2.190.0070.00716.58
8.2.180.0070.00716.63
8.2.170.0070.00722.96
8.2.160.0100.00320.27
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.01720.47
8.2.120.0070.00726.35
8.2.110.0070.00322.14
8.2.100.0040.00817.54
8.2.90.0000.00817.91
8.2.80.0000.00819.27
8.2.70.0060.00317.80
8.2.60.0040.00417.77
8.2.50.0020.00518.10
8.2.40.0030.00620.59
8.2.30.0040.00419.28
8.2.20.0000.00717.90
8.2.10.0000.00817.80
8.2.00.0000.00718.10
8.1.340.0100.00920.07
8.1.330.0120.00716.00
8.1.320.0120.00816.21
8.1.310.0030.01416.72
8.1.300.0060.00316.07
8.1.290.0000.01030.84
8.1.280.0100.00725.92
8.1.270.0080.00024.66
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0060.00322.15
8.1.230.0060.00620.97
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0080.00017.23
8.1.190.0000.00817.10
8.1.180.0000.00718.10
8.1.170.0000.00818.51
8.1.160.0080.00018.68
8.1.150.0000.00720.24
8.1.140.0070.00017.56
8.1.130.0000.00720.53
8.1.120.0040.00317.32
8.1.110.0000.00717.29
8.1.100.0000.00817.21
8.1.90.0040.00417.34
8.1.80.0040.00717.28
8.1.70.0060.00317.25
8.1.60.0040.00417.51
8.1.50.0000.00817.32
8.1.40.0030.00617.46
8.1.30.0060.00317.45
8.1.20.0070.00017.61
8.1.10.0030.00517.50
8.1.00.0030.00617.32
8.0.300.0070.00020.16
8.0.290.0000.00716.75
8.0.280.0000.00718.34
8.0.270.0070.00017.16
8.0.260.0030.00316.85
8.0.250.0030.00316.95
8.0.240.0030.00516.86
8.0.230.0070.00016.80
8.0.220.0030.00316.76
8.0.210.0000.00716.79
8.0.200.0090.00016.73
8.0.190.0020.00516.71
8.0.180.0040.00416.80
8.0.170.0080.00016.76
8.0.160.0070.00016.67
8.0.150.0000.00716.72
8.0.140.0000.00716.61
8.0.130.0060.00013.11
8.0.120.0000.00716.76
8.0.110.0040.00416.64
8.0.100.0080.00016.75
8.0.90.0050.00316.70
8.0.80.0060.01516.71
8.0.70.0040.00416.79
8.0.60.0070.00016.62
8.0.50.0000.00716.79
8.0.30.0100.00616.96
8.0.20.0110.01017.40
8.0.10.0000.00716.91
8.0.00.0050.01216.53
7.4.330.0020.00215.55
7.4.320.0030.00316.38
7.4.300.0070.00016.53
7.4.290.0030.00316.53
7.4.280.0060.00016.44
7.4.270.0040.00416.43
7.4.260.0030.00316.46
7.4.250.0050.00216.48
7.4.240.0050.00216.52
7.4.230.0030.00316.46
7.4.220.0000.00816.23
7.4.210.0030.01016.32
7.4.200.0070.00016.29
7.4.160.0080.00916.50
7.4.150.0070.01017.40
7.4.140.0110.01117.86
7.4.130.0030.01316.42
7.4.120.0100.00916.49
7.4.110.0130.00316.36
7.4.100.0100.00716.45
7.4.90.0060.01116.34
7.4.80.0060.01519.39
7.4.70.0100.01016.50
7.4.60.0040.01116.27
7.4.50.0060.00616.32
7.4.40.0170.00016.28
7.4.00.0040.01114.70
7.3.330.0030.00313.23
7.3.320.0060.00013.18
7.3.310.0030.00316.32
7.3.300.0000.00716.15
7.3.290.0070.01016.22
7.3.280.0070.00916.26
7.3.270.0070.01017.40
7.3.260.0080.01316.39
7.3.250.0110.01016.28
7.3.240.0090.00916.23
7.3.230.0110.00716.25
7.3.210.0000.01516.34
7.3.200.0100.00716.29
7.3.190.0090.01516.52
7.3.180.0070.01316.48
7.3.170.0060.01316.25
7.3.160.0100.01316.42
7.3.10.0110.00216.47
7.3.00.0050.00716.38
7.2.330.0140.00716.57
7.2.320.0060.01016.64
7.2.310.0130.00316.71
7.2.300.0080.00816.31
7.2.290.0110.01116.74
7.2.130.0040.00916.82
7.2.120.0100.00416.72
7.2.110.0060.00716.74
7.2.100.0060.00816.80
7.2.90.0080.00816.90
7.2.80.0040.01416.75
7.2.70.0070.01016.72
7.2.60.0040.01116.63
7.2.50.0100.00116.78
7.2.40.0070.00516.71
7.2.30.0080.00716.89
7.2.20.0060.00816.71
7.2.10.0080.01217.08
7.2.00.0110.01117.21
7.1.250.0050.00915.65
7.1.200.0260.00315.56
7.1.130.0190.00616.82
7.1.120.0400.01316.70
7.1.110.0280.01315.99
7.1.100.0230.00716.03
7.1.90.0400.00715.78
7.1.80.0210.01116.16
7.1.70.0340.01015.14
7.1.60.0310.01632.98
7.1.50.0340.01032.80
7.1.40.0360.00932.46
7.1.30.0370.01632.56
7.1.20.0310.01932.80
7.1.10.0190.01014.71
7.1.00.0280.00914.88

preferences:
49.18 ms | 1436 KiB | 5 Q