3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function lorem() { return 42; } public static function ipsum() { $f = static function () { return static::lorem(); }; return $f(); } } class Bar extends Foo { public static function lorem() { return 37; } } var_dump(Bar::ipsum());

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.70.0120.00618.43
8.3.60.0030.01716.75
8.3.50.0160.00522.02
8.3.40.0100.01018.61
8.3.30.0080.00619.09
8.3.20.0070.00719.93
8.3.10.0040.00421.90
8.3.00.0040.00418.97
8.2.180.0100.01018.04
8.2.170.0170.00318.91
8.2.160.0110.00322.96
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0030.00726.16
8.2.120.0060.00319.36
8.2.110.0060.00319.23
8.2.100.0060.00617.78
8.2.90.0050.00319.26
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0030.00617.93
8.2.50.0030.00518.07
8.2.40.0040.00419.83
8.2.30.0040.00418.06
8.2.20.0000.00817.59
8.2.10.0000.00818.06
8.2.00.0000.00717.62
8.1.280.0040.01425.92
8.1.270.0060.00320.68
8.1.260.0110.00726.35
8.1.250.0100.00328.09
8.1.240.0060.00323.83
8.1.230.0110.00019.05
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0070.00317.36
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0030.00618.51
8.1.160.0040.00421.97
8.1.150.0030.00518.93
8.1.140.0040.00417.44
8.1.130.0000.00717.79
8.1.120.0040.00417.50
8.1.110.0110.00017.34
8.1.100.0000.00717.47
8.1.90.0030.00417.37
8.1.80.0000.00717.38
8.1.70.0030.00317.38
8.1.60.0040.00417.47
8.1.50.0040.00417.37
8.1.40.0040.00417.51
8.1.30.0040.00417.50
8.1.20.0040.00417.63
8.1.10.0030.00617.52
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0050.00216.63
8.0.280.0040.00418.45
8.0.270.0040.00417.07
8.0.260.0030.00317.11
8.0.250.0000.00716.92
8.0.240.0050.00316.80
8.0.230.0040.00416.90
8.0.220.0030.00316.83
8.0.210.0000.00816.88
8.0.200.0000.00716.88
8.0.190.0040.00417.02
8.0.180.0000.00716.95
8.0.170.0000.00816.96
8.0.160.0030.00516.93
8.0.150.0000.00716.86
8.0.140.0000.00816.75
8.0.130.0000.00513.25
8.0.120.0080.00016.74
8.0.110.0040.00416.87
8.0.100.0000.00816.72
8.0.90.0000.00716.92
8.0.80.0040.01116.94
8.0.70.0030.00516.70
8.0.60.0000.00716.89
8.0.50.0000.00716.78
8.0.30.0130.01217.00
8.0.20.0110.00817.40
8.0.10.0080.00016.98
8.0.00.0100.00816.70
7.4.330.0020.00215.03
7.4.320.0030.00316.63
7.4.300.0040.00416.36
7.4.290.0000.00916.59
7.4.280.0030.00316.55
7.4.270.0000.00716.40
7.4.260.0040.00416.49
7.4.250.0030.00316.55
7.4.240.0030.00516.54
7.4.230.0030.00316.54
7.4.220.0140.00616.62
7.4.210.0080.00816.55
7.4.200.0000.00716.50
7.4.160.0080.00816.25
7.4.150.0230.03217.40
7.4.140.0100.01117.86
7.4.130.0160.00516.61
7.4.120.0110.00516.37
7.4.110.0120.00816.45
7.4.100.0060.01016.42
7.4.90.0100.00716.48
7.4.80.0060.01119.39
7.4.70.0120.00916.42
7.4.60.0060.01616.36
7.4.50.0040.00416.16
7.4.40.0060.01216.43
7.4.30.0070.01016.66
7.4.00.0000.00714.71
7.3.330.0050.00013.30
7.3.320.0050.01013.30
7.3.310.0000.00716.34
7.3.300.0030.00316.32
7.3.290.0030.00316.22
7.3.280.0080.00916.32
7.3.270.0070.01117.40
7.3.260.0130.00316.32
7.3.250.0110.00916.45
7.3.240.0140.00316.21
7.3.230.0110.00716.56
7.3.210.0030.01916.20
7.3.200.0080.00819.39
7.3.190.0060.00916.26
7.3.180.0090.00616.58
7.3.170.0070.01116.29
7.3.160.0140.00316.31
7.2.330.0110.01416.64
7.2.320.0130.00316.49
7.2.310.0070.01316.55
7.2.300.0090.00916.28
7.2.290.0090.01316.53
7.2.00.0040.00819.54
7.1.200.0110.00015.59
7.1.100.0060.00617.82
7.1.70.0080.00017.16
7.1.60.0170.00719.50
7.1.50.0100.01316.72
7.1.00.0000.08022.43
7.0.200.0220.00716.45
7.0.140.0000.05021.91
7.0.60.0000.08319.89
7.0.50.0100.07717.89
7.0.40.0070.08720.16
7.0.30.0200.04020.28
7.0.20.0300.07020.08
7.0.10.0270.08320.24
7.0.00.0100.08320.33
5.6.280.0000.07721.15
5.6.210.0100.07020.77
5.6.200.0200.06718.19
5.6.190.0100.08020.47
5.6.180.0270.04020.30
5.6.170.0230.05320.45
5.6.160.0100.08320.45
5.6.150.0030.07718.16
5.6.140.0030.04018.15
5.6.130.0100.08318.18
5.6.120.0100.03320.90
5.6.110.0130.08320.91
5.6.100.0170.03321.02
5.6.90.0230.07021.09
5.6.80.0000.04020.41
5.6.70.0300.07720.52
5.5.350.0200.04320.45
5.5.340.0100.03717.96
5.5.330.0000.08320.57
5.5.320.0000.09020.28
5.5.310.0230.04320.38
5.5.300.0130.07718.04
5.5.290.0130.07017.98
5.5.280.0000.04720.77
5.5.270.0200.07320.77
5.5.260.0070.05720.85
5.5.250.0070.06020.70
5.5.240.0200.06020.13
5.4.450.0630.05019.34
5.4.440.0830.06019.59
5.4.430.0900.06719.57
5.4.420.0200.05319.43
5.4.410.0900.05319.29
5.4.400.1100.04718.55
5.4.390.1070.06718.73
5.4.380.1170.04318.59
5.4.370.1400.04718.77
5.4.360.1170.06018.75
5.4.350.1070.05018.48
5.4.340.1000.05718.79
5.4.320.0930.06318.57
5.4.310.1100.04718.76
5.4.300.0930.06318.70
5.4.290.1030.04318.84
5.4.280.1000.05018.74
5.4.270.0900.06318.62
5.4.260.1070.04318.61
5.4.250.1000.07018.72
5.4.240.1170.04718.69
5.4.230.1200.05318.46
5.4.220.1870.06018.60
5.4.210.0900.06318.58
5.4.200.1070.07316.50
5.4.190.1100.05318.55
5.4.180.2100.05018.71
5.4.170.0930.06718.72
5.4.160.1130.05718.76
5.4.150.2300.06318.47
5.4.140.1200.06316.21
5.4.130.0900.06016.33
5.4.120.1030.06016.30
5.4.110.1130.06316.21
5.4.100.1270.06716.45
5.4.90.2800.06716.29
5.4.80.1270.05316.26
5.4.70.1030.06016.27
5.4.60.1230.05016.30
5.4.50.1130.05316.31
5.4.40.1100.05016.41
5.4.30.0930.05716.11
5.4.20.1100.07016.29
5.4.10.1800.05016.27
5.4.00.1000.05015.65
5.3.290.1130.05014.66
5.3.280.0970.06014.60
5.3.270.1000.05314.60
5.3.260.0800.07014.84
5.3.250.1000.05714.66
5.3.240.1200.06314.59
5.3.230.1070.07014.58
5.3.220.1170.06014.60
5.3.210.2100.06014.73
5.3.200.0970.05314.60
5.3.190.1070.07014.61
5.3.180.1030.06714.75
5.3.170.1100.05314.60
5.3.160.1030.04314.59
5.3.150.1070.06314.73
5.3.140.1070.07014.55
5.3.130.1030.05314.65
5.3.120.2870.06014.75
5.3.110.1070.05314.59
5.3.100.1100.06314.10
5.3.90.1000.07014.23
5.3.80.0970.05014.13
5.3.70.1030.05714.02
5.3.60.1800.04714.06
5.3.50.0870.06714.04
5.3.40.0970.06314.07
5.3.30.1070.05313.93
5.3.20.1970.04013.72
5.3.10.0870.05713.71
5.3.00.1000.07713.75
5.2.170.0730.04711.35
5.2.160.0670.05711.21
5.2.150.0800.03711.16
5.2.140.0800.04311.16
5.2.130.0800.04311.31
5.2.120.0700.04311.21
5.2.110.0770.04011.17
5.2.100.1070.04311.21
5.2.90.0900.04311.16
5.2.80.0800.04011.32
5.2.70.0830.06011.14
5.2.60.2000.03311.17
5.2.50.0800.05011.13
5.2.40.0600.04011.10
5.2.30.0700.04311.09
5.2.20.0600.04310.96
5.2.10.0700.04310.91
5.2.00.0700.03310.75
5.1.60.0700.0339.98
5.1.50.0800.04010.13
5.1.40.0770.0439.96
5.1.30.0700.04710.40
5.1.20.0670.04310.39
5.1.10.0600.03710.25
5.1.00.0700.03710.20
5.0.50.0370.0308.57
5.0.40.0330.0308.60
5.0.30.0430.0538.43
5.0.20.0330.0308.32
5.0.10.0470.0378.21
5.0.00.0370.0438.34
4.4.90.0330.0236.00
4.4.80.0330.0205.86
4.4.70.0370.0175.95
4.4.60.0300.0275.98
4.4.50.0330.0205.88
4.4.40.0270.0405.93
4.4.30.0430.0235.96
4.4.20.0300.0235.99
4.4.10.0270.0276.02
4.4.00.0300.0335.95
4.3.110.0300.0235.87
4.3.100.0330.0205.81
4.3.90.0300.0235.78
4.3.80.0270.0405.80
4.3.70.0270.0235.87
4.3.60.0270.0275.89
4.3.50.0400.0175.80
4.3.40.0300.0335.75
4.3.30.0170.0204.70
4.3.20.0200.0234.55
4.3.10.0130.0234.46
4.3.00.0070.0236.68

preferences:
40.62 ms | 401 KiB | 5 Q