3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar() { return new self(); } } var_dump(Foo::bar());

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.00718.18
8.3.50.0120.00721.99
8.3.40.0150.00018.72
8.3.30.0070.01118.91
8.3.20.0040.00420.09
8.3.10.0040.00421.71
8.3.00.0050.00318.89
8.2.180.0150.00617.94
8.2.170.0060.01022.96
8.2.160.0030.01022.09
8.2.150.0060.00924.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00319.65
8.2.110.0040.00422.25
8.2.100.0110.00017.91
8.2.90.0030.00519.05
8.2.80.0000.00817.97
8.2.70.0050.00517.38
8.2.60.0070.00317.67
8.2.50.0030.00618.07
8.2.40.0040.00419.74
8.2.30.0100.00017.92
8.2.20.0000.00717.60
8.2.10.0040.00417.80
8.2.00.0000.00817.44
8.1.280.0120.00925.92
8.1.270.0040.00418.75
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.05
8.1.230.0120.00019.15
8.1.220.0070.00017.74
8.1.210.0090.00018.77
8.1.200.0030.00617.23
8.1.190.0060.00317.22
8.1.180.0000.00818.10
8.1.170.0090.00018.56
8.1.160.0050.00221.98
8.1.150.0050.00218.65
8.1.140.0060.00317.24
8.1.130.0030.00317.68
8.1.120.0000.00717.35
8.1.110.0040.00417.30
8.1.100.0070.00017.30
8.1.90.0040.00417.23
8.1.80.0040.00417.31
8.1.70.0000.00717.35
8.1.60.0050.00317.44
8.1.50.0060.00317.32
8.1.40.0030.00517.38
8.1.30.0000.00817.49
8.1.20.0040.00417.50
8.1.10.0080.00017.41
8.1.00.0000.00717.40
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0000.00717.06
8.0.260.0000.00717.18
8.0.250.0070.00016.73
8.0.240.0030.00316.82
8.0.230.0030.00316.93
8.0.220.0000.00716.81
8.0.210.0050.00216.88
8.0.200.0030.00316.88
8.0.190.0070.00016.83
8.0.180.0030.00516.75
8.0.170.0040.00416.88
8.0.160.0030.00316.74
8.0.150.0070.00016.59
8.0.140.0040.00316.74
8.0.130.0060.00013.25
8.0.120.0040.00416.70
8.0.110.0040.00416.67
8.0.100.0050.00216.76
8.0.90.0040.00416.77
8.0.80.0030.01216.80
8.0.70.0040.00416.62
8.0.60.0030.00516.70
8.0.50.0070.00016.79
8.0.30.0110.00916.95
8.0.20.0110.00817.40
8.0.10.0000.00816.86
8.0.00.0110.00616.76
7.4.330.0000.00515.03
7.4.320.0000.00616.26
7.4.300.0000.00616.53
7.4.290.0000.00716.53
7.4.280.0040.00716.39
7.4.270.0050.00216.50
7.4.260.0000.00816.43
7.4.250.0040.00316.38
7.4.240.0020.00616.37
7.4.230.0070.00016.36
7.4.220.0090.00916.49
7.4.210.0040.01216.56
7.4.200.0030.00316.55
7.4.160.0060.00916.43
7.4.150.0110.00717.40
7.4.140.0080.01217.86
7.4.130.0100.00716.41
7.4.120.0080.01416.49
7.4.110.0070.01116.37
7.4.100.0080.01116.49
7.4.90.0110.00916.32
7.4.80.0100.01019.39
7.4.70.0130.00316.37
7.4.60.0100.00716.48
7.4.50.0030.00616.17
7.4.40.0120.00616.39
7.4.30.0070.01116.48
7.4.00.0120.00414.75
7.3.330.0040.00413.30
7.3.320.0020.00213.22
7.3.310.0000.00716.18
7.3.300.0050.00216.09
7.3.290.0070.00816.24
7.3.280.0070.01116.23
7.3.270.0070.01117.40
7.3.260.0210.00016.18
7.3.250.0080.00816.30
7.3.240.0090.00816.46
7.3.230.0070.01016.39
7.3.210.0030.01316.39
7.3.200.0000.01519.39
7.3.190.0070.01416.16
7.3.180.0120.00415.98
7.3.170.0030.01416.45
7.3.160.0070.00716.42
7.3.10.0110.00715.84
7.3.00.0080.01116.09
7.2.330.0000.01716.54
7.2.320.0070.01416.64
7.2.310.0090.00916.43
7.2.300.0110.00716.47
7.2.290.0100.01716.50
7.2.130.0090.00916.43
7.2.120.0070.01116.21
7.2.110.0150.00016.19
7.2.100.0090.00916.39
7.2.90.0090.00016.32
7.2.80.0150.00616.36
7.2.70.0220.00816.43
7.2.60.0170.00416.51
7.2.50.0200.00316.16
7.2.40.0060.01516.37
7.2.30.0160.01216.60
7.2.20.0120.00616.25
7.2.10.0070.01316.02
7.2.00.0130.00717.87
7.1.250.0120.00614.98
7.1.200.0060.00615.67
7.1.100.0000.01418.03
7.1.70.0030.00316.97
7.1.60.0130.01019.46
7.1.50.0060.01316.89
7.1.00.0030.07722.31
7.0.200.0050.00316.32
7.0.140.0130.03721.96
7.0.60.0030.04319.89
7.0.50.0030.05017.83
7.0.40.0100.04020.14
7.0.30.0230.05020.29
7.0.20.0200.08320.33
7.0.10.0070.04320.09
7.0.00.0200.06320.09
5.6.210.0100.07320.49
5.6.200.0070.07018.29
5.6.190.0070.05020.47
5.6.180.0230.04320.61
5.6.170.0430.05320.40
5.6.160.0100.04720.46
5.6.150.0070.08018.17
5.6.140.0100.06318.28
5.6.130.0100.08318.20
5.6.120.0030.05020.99
5.6.110.0100.08021.14
5.6.100.0070.04020.98
5.6.90.0100.03721.00
5.6.80.0100.07720.51
5.5.350.0070.05320.52
5.5.340.0100.07718.08
5.5.330.0000.05720.27
5.5.320.0400.07320.31
5.5.310.0270.04020.26
5.5.300.0130.06717.94
5.5.290.0070.05717.95
5.5.280.0070.05320.84
5.5.270.0030.09020.79
5.5.260.0000.04320.89
5.5.250.0030.09020.69
5.5.240.4270.03320.26
5.4.450.0530.05319.42
5.4.440.0570.05319.47
5.4.430.0130.05019.46
5.4.420.0130.05319.62
5.4.410.0230.06319.36
5.4.400.0200.04319.31
5.4.390.0900.05318.58
5.4.380.0870.06018.50
5.4.370.0900.04318.68
5.4.360.0730.05718.81
5.4.350.0870.05718.75
5.4.340.0970.04718.58
5.4.320.0770.07018.61
5.4.310.0870.06018.60
5.4.300.0900.06318.69
5.4.290.0900.05318.55
5.4.280.0970.05018.49
5.4.270.1030.05018.61
5.4.260.1100.06318.51
5.4.250.0970.05318.46
5.4.240.0830.06318.77
5.4.230.0970.05318.77
5.4.220.1130.06318.68
5.4.210.0870.06318.74
5.4.200.0900.05316.59
5.4.190.0870.06318.83
5.4.180.1170.04018.50
5.4.170.0770.06318.61
5.4.160.0770.06318.76
5.4.150.0830.05718.70
5.4.140.0830.05716.44
5.4.130.1030.06316.21
5.4.120.1100.06716.32
5.4.110.0830.06016.28
5.4.100.0970.05016.21
5.4.90.1070.07016.31
5.4.80.1300.04716.23
5.4.70.0930.05316.30
5.4.60.0870.05716.27
5.4.50.0870.04316.27
5.4.40.1000.05316.43
5.4.30.0730.05316.25
5.4.20.0770.07016.22
5.4.10.0870.04716.39
5.4.00.1100.05315.72
5.3.290.1000.05014.64
5.3.280.0970.03714.77
5.3.270.0900.05014.59
5.3.260.0870.06014.58
5.3.250.0900.04714.73
5.3.240.0970.05014.71
5.3.230.0900.05014.70
5.3.220.0930.05314.56
5.3.210.0870.05014.61
5.3.200.0770.05714.57
5.3.190.1030.05314.73
5.3.180.0800.06014.76
5.3.170.0900.05714.74
5.3.160.0930.05014.62
5.3.150.0830.05714.66
5.3.140.0870.05014.60
5.3.130.1030.05714.57
5.3.120.0930.06314.59
5.3.110.1000.06714.73
5.3.100.0870.05714.09
5.3.90.0930.05714.11
5.3.80.0800.06014.06
5.3.70.0970.06714.22
5.3.60.0830.05314.02
5.3.50.1000.05713.96
5.3.40.0900.05013.99
5.3.30.0930.05014.11
5.3.20.0830.05313.80
5.3.10.0900.04713.73
5.3.00.0800.05713.69
5.2.170.0870.03711.19
5.2.160.0800.04311.19
5.2.150.0770.04711.14
5.2.140.0670.04711.18
5.2.130.0630.04311.16
5.2.120.0700.04011.14
5.2.110.0670.04711.15
5.2.100.0730.04011.16
5.2.90.0800.03711.32
5.2.80.0770.04711.21
5.2.70.0770.04011.21
5.2.60.0700.04311.16
5.2.50.0830.03711.15
5.2.40.0530.04011.02
5.2.30.0530.04310.96
5.2.20.0530.04310.99
5.2.10.0500.05010.89
5.2.00.0630.03710.76
5.1.60.0500.03710.18
5.1.50.0530.04710.06
5.1.40.0570.0379.99
5.1.30.0630.03310.35
5.1.20.0600.03710.36
5.1.10.0570.03710.21
5.1.00.0570.03710.25
5.0.50.0270.0338.67
5.0.40.0270.0338.41
5.0.30.0300.0438.32
5.0.20.0430.0178.30
5.0.10.0300.0308.29
5.0.00.0370.0378.35
4.4.90.0270.0235.90
4.4.80.0330.0175.88
4.4.70.0270.0205.98
4.4.60.0300.0175.96
4.4.50.0300.0236.01
4.4.40.0300.0375.91
4.4.30.0200.0275.97
4.4.20.0270.0235.94
4.4.10.0270.0235.96
4.4.00.0230.0405.91
4.3.110.0270.0275.86
4.3.100.0330.0205.88
4.3.90.0330.0175.88
4.3.80.0330.0405.77
4.3.70.0330.0235.79
4.3.60.0370.0275.76
4.3.50.0400.0235.78
4.3.40.0330.0335.73
4.3.30.0200.0204.66
4.3.20.0130.0334.58
4.3.10.0130.0304.58
4.3.00.0070.02312.52

preferences:
46.56 ms | 404 KiB | 6 Q