3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { const BAZ = 37; public static function f() { return static function () { var_dump(static::BAZ); var_dump(static::class); }; } } $f = A::f(); $f(); $g = $f->bindTo(null, A::class); $g(); $foo = static function () { var_dump(static::BAZ); var_dump(static::class); }; $bar = $foo->bindTo(null, A::class); $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.130.0030.00518.24
8.3.120.0080.00020.67
8.3.110.0000.00720.94
8.3.100.0060.00324.06
8.3.90.0050.00326.77
8.3.80.0030.00618.43
8.3.70.0100.00616.75
8.3.60.0090.00618.50
8.3.50.0120.00921.21
8.3.40.0120.00318.71
8.3.30.0040.01119.10
8.3.20.0000.00820.30
8.3.10.0000.00821.98
8.3.00.0000.00722.39
8.2.250.0030.01318.50
8.2.240.0060.00318.73
8.2.230.0060.00322.58
8.2.220.0090.00337.54
8.2.210.0070.00726.77
8.2.200.0060.00316.50
8.2.190.0040.01116.58
8.2.180.0060.00916.60
8.2.170.0140.00422.96
8.2.160.0100.00322.12
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.01326.16
8.2.120.0000.00719.54
8.2.110.0030.00620.52
8.2.100.0090.00319.45
8.2.90.0040.00418.22
8.2.80.0030.00618.01
8.2.70.0050.00317.63
8.2.60.0040.00418.04
8.2.50.0000.01318.07
8.2.40.0040.00418.22
8.2.30.0030.00618.03
8.2.20.0000.00817.57
8.2.10.0050.00217.76
8.2.00.0000.00917.61
8.1.300.0030.00618.29
8.1.290.0040.00430.84
8.1.280.0130.00725.92
8.1.270.0090.00018.49
8.1.260.0000.00726.35
8.1.250.0100.00328.09
8.1.240.0040.00422.14
8.1.230.0040.00821.03
8.1.220.0030.00617.74
8.1.210.0050.00318.89
8.1.200.0060.00317.22
8.1.190.0040.00417.54
8.1.180.0000.00818.63
8.1.170.0080.00018.48
8.1.160.0000.00722.14
8.1.150.0040.00418.70
8.1.140.0040.00417.42
8.1.130.0070.00017.84
8.1.120.0070.00017.55
8.1.110.0050.00317.39
8.1.100.0080.00017.45
8.1.90.0000.00717.48
8.1.80.0070.00017.45
8.1.70.0000.00717.39
8.1.60.0000.00817.64
8.1.50.0000.00717.54
8.1.40.0040.00417.57
8.1.30.0030.00617.52
8.1.20.0030.00517.57
8.1.10.0080.00417.55
8.1.00.0040.00417.41
8.0.300.0000.00820.16
8.0.290.0070.00017.05
8.0.280.0040.00418.44
8.0.270.0030.00317.32
8.0.260.0000.00616.83
8.0.250.0000.00717.00
8.0.240.0080.00016.89
8.0.230.0030.00316.98
8.0.220.0000.00716.80
8.0.210.0030.00316.94
8.0.200.0000.00616.96
8.0.190.0040.00416.92
8.0.180.0050.00316.92
8.0.170.0050.00316.94
8.0.160.0000.00816.95
8.0.150.0040.00416.80
8.0.140.0000.00716.93
8.0.130.0000.00513.39
8.0.120.0030.00616.91
8.0.110.0040.00416.88
8.0.100.0070.00016.80
8.0.90.0040.00416.93
8.0.80.0040.01116.78
8.0.70.0070.00017.02
8.0.60.0000.00716.93
8.0.50.0000.00716.93
8.0.30.0150.00317.13
8.0.20.0100.01317.40
8.0.10.0000.00716.97
8.0.00.0120.00916.75
7.4.330.0000.00515.00
7.4.320.0000.00616.70
7.4.300.0030.00316.46
7.4.290.0040.00416.65
7.4.280.0040.00416.56
7.4.270.0030.00516.42
7.4.260.0000.00816.61
7.4.250.0050.00516.33
7.4.240.0040.00316.53
7.4.230.0080.00016.39
7.4.220.0110.00716.57
7.4.210.0080.00616.56
7.4.200.0040.00416.71
7.4.190.0000.00716.70
7.4.160.0150.00916.48
7.4.150.0040.01517.40
7.4.140.0110.00817.86
7.4.130.0100.01016.55
7.4.120.0110.00716.39
7.4.110.0070.01016.45
7.4.100.0130.00916.59
7.4.90.0160.00816.63
7.4.80.0040.01219.39
7.4.70.0130.01016.43
7.4.60.0100.01016.43
7.4.50.0060.00016.24
7.4.40.0120.00322.77
7.4.30.0100.00616.35
7.4.00.0120.00315.20
7.3.330.0030.00313.18
7.3.320.0000.00513.31
7.3.310.0020.00516.11
7.3.300.0030.00316.36
7.3.290.0080.00616.31
7.3.280.0090.00716.29
7.3.270.0150.00317.40
7.3.260.0120.00616.38
7.3.250.0150.00216.45
7.3.240.0100.00716.21
7.3.230.0100.00716.47
7.3.210.0130.00416.41
7.3.200.0090.00619.39
7.3.190.0100.01016.25
7.3.180.0000.01616.26
7.3.170.0120.00316.38
7.3.160.0100.00716.60
7.3.120.0070.01014.72
7.2.330.0000.02116.77
7.2.320.0140.01016.33
7.2.310.0060.01116.52
7.2.300.0000.01616.33
7.2.290.0100.00616.52
7.2.110.0060.01016.41
7.2.100.0060.00616.26
7.2.90.0030.01316.64
7.2.80.0100.00316.41
7.2.70.0120.00317.03
7.2.60.0090.00416.81
7.2.50.0070.00716.50
7.2.40.0030.00716.64
7.2.30.0030.01016.85
7.2.20.0070.00716.72
7.2.10.0060.00316.77
7.2.00.0110.00416.51
7.1.230.0030.00915.55
7.1.220.0040.00815.43
7.1.210.0030.01015.56
7.1.200.0050.00715.60
7.1.190.0040.01115.50
7.1.180.0040.00815.52
7.1.170.0030.01015.29
7.1.160.0110.00015.38
7.1.150.0040.00715.64
7.1.140.0060.00615.55
7.1.130.0040.01115.57
7.1.120.0000.01515.36
7.1.110.0060.00615.41
7.1.100.0020.01016.68
7.1.90.0000.01215.43
7.1.80.0110.00015.59
7.1.70.0050.00516.31
7.1.60.0090.01117.70
7.1.50.0110.00816.11
7.1.40.0150.00015.59
7.1.30.0110.00315.60
7.1.20.0070.00715.85
7.1.10.0040.00815.71
7.1.00.0010.03619.10
7.0.310.0060.00314.99
7.0.300.0040.01214.95
7.0.290.0100.00014.82
7.0.280.0050.00315.14
7.0.270.0030.00915.06
7.0.260.0070.00315.09
7.0.250.0030.01015.18
7.0.240.0040.00815.19
7.0.230.0030.00715.07
7.0.220.0030.00614.89
7.0.210.0030.00615.01
7.0.200.0160.00814.58
7.0.190.0030.00915.04
7.0.180.0050.00515.15
7.0.170.0030.00615.07
7.0.160.0000.01115.06
7.0.150.0070.00014.95
7.0.140.0030.04318.66
7.0.130.0070.00014.98
7.0.120.0050.03818.64
7.0.110.0080.03518.71
7.0.100.0020.04418.65
7.0.90.0030.04118.63
7.0.80.0090.03518.61
7.0.70.0080.03618.66
7.0.60.0060.03918.56
7.0.50.0020.04218.56
7.0.40.0000.04417.49
7.0.30.0050.04017.73
7.0.20.0020.04217.55
7.0.10.0080.03317.65
7.0.00.0060.03517.57
5.6.380.0060.00613.82
5.6.370.0000.01014.04
5.6.360.0000.01413.93
5.6.350.0000.01014.17
5.6.340.0070.00713.97
5.6.330.0100.00314.04
5.6.320.0000.01014.05
5.6.310.0040.00814.23
5.6.300.0040.00714.19
5.6.290.0000.00814.03
5.6.280.0020.04317.56
5.6.270.0060.00614.10
5.6.260.0100.03517.59
5.6.250.0020.04117.32
5.6.240.0080.03317.49
5.6.230.0050.03817.43
5.6.220.0020.04017.41
5.6.210.0070.03617.43
5.6.200.0100.03717.47
5.6.190.0070.04017.57
5.6.180.0070.03617.33
5.6.170.0060.03917.45
5.6.160.0050.03817.42
5.6.150.0030.04217.55
5.6.140.0010.04117.53
5.6.130.0060.03317.57
5.6.120.0000.04317.49
5.6.110.0040.04017.39
5.6.100.0020.04317.39
5.6.90.0020.04417.23
5.6.80.0040.03716.98
5.6.70.0060.03616.99
5.6.60.0070.03617.04
5.6.50.0060.03517.24
5.6.40.0030.03717.15
5.6.30.0050.04017.08
5.6.20.0050.03817.09
5.6.10.0050.03317.01
5.6.00.0050.03517.04
5.5.380.0060.03314.06
5.5.370.0070.03214.11
5.5.360.0020.04014.30
5.5.350.0000.04014.28
5.5.340.0050.03514.33
5.5.330.0040.03414.48
5.5.320.0050.03814.27
5.5.310.0050.03714.46
5.5.300.0040.04114.50
5.5.290.0000.04214.45
5.5.280.0020.04214.36
5.5.270.0050.04014.38
5.5.260.0050.03514.39
5.5.250.0050.04014.23
5.5.240.0030.03814.08
5.5.230.0050.03814.07
5.5.220.0060.03414.12
5.5.210.0050.03514.09
5.5.200.0060.03413.90
5.5.190.0000.04114.03
5.5.180.0030.03214.03
5.5.170.0060.00613.65
5.5.160.0050.03514.10
5.5.150.0020.03914.03
5.5.140.0020.03814.02
5.5.130.0040.03713.94
5.5.120.0050.03514.12
5.5.110.0050.03313.94
5.5.100.0070.03314.00
5.5.90.0040.03613.91
5.5.80.0030.03513.96
5.5.70.0000.03514.03
5.5.60.0040.03413.88
5.5.50.0050.03314.00
5.5.40.0090.03213.88
5.5.30.0030.03814.07
5.5.20.0020.04013.98
5.5.10.0020.04114.04
5.5.00.0030.03713.99
5.4.450.0050.03115.06
5.4.440.0050.03815.04
5.4.430.0030.03915.13
5.4.420.0030.03815.14
5.4.410.0030.03715.14
5.4.400.0000.03814.89
5.4.390.0040.03714.93
5.4.380.0050.03514.80
5.4.370.0060.03014.90
5.4.360.0000.04014.78
5.4.350.0100.03014.90
5.4.340.0050.03714.92
5.4.330.0000.00610.62
5.4.320.0010.04014.96
5.4.310.0060.03315.01
5.4.300.0060.03214.80
5.4.290.0020.03614.84
5.4.280.0050.03314.77
5.4.270.0080.03214.95
5.4.260.0060.03214.82
5.4.250.0030.03315.10
5.4.240.0030.03514.92
5.4.230.0030.03714.88
5.4.220.0050.03514.81
5.4.210.0070.03314.91
5.4.200.0030.03314.82
5.4.190.0030.03414.89
5.4.180.0060.03314.90
5.4.170.0030.03714.79
5.4.160.0030.03514.86
5.4.150.0000.04214.87
5.4.140.0020.03213.62
5.4.130.0000.03613.57
5.4.120.0000.03713.62
5.4.110.0020.03813.61
5.4.100.0070.03013.49
5.4.90.0020.03713.66
5.4.80.0030.03513.57
5.4.70.0020.03613.65
5.4.60.0000.03713.63
5.4.50.0040.03513.54
5.4.40.0060.03213.65
5.4.30.0040.03513.73
5.4.20.0020.03713.53
5.4.10.0020.03813.50
5.4.00.0020.03513.22
5.3.290.0010.03812.68
5.3.280.0020.03712.67
5.3.270.0000.03412.59
5.3.260.0070.03512.54
5.3.250.0000.03712.62
5.3.240.0020.02712.67
5.3.230.0010.03812.53
5.3.220.0060.03312.63
5.3.210.0010.04012.66
5.3.200.0000.03912.66
5.3.190.0020.03712.59
5.3.180.0030.03312.58
5.3.170.0030.03512.59
5.3.160.0050.03512.65
5.3.150.0040.03212.59
5.3.140.0010.03512.63
5.3.130.0010.03812.69
5.3.120.0010.03812.57
5.3.110.0030.03712.57
5.3.100.0000.03812.44
5.3.90.0000.03812.38
5.3.80.0060.02512.34
5.3.70.0040.03212.32
5.3.60.0060.03312.32
5.3.50.0040.03212.28
5.3.40.0020.03812.28
5.3.30.0030.03512.24
5.3.20.0040.03412.14
5.3.10.0050.02412.15
5.3.00.0020.03512.14
5.2.170.0050.02810.88
5.2.160.0010.02910.88
5.2.150.0030.03010.88
5.2.140.0050.02810.87
5.2.130.0040.02310.85
5.2.120.0050.02110.78
5.2.110.0020.02710.84
5.2.100.0050.02210.85
5.2.90.0050.02710.90
5.2.80.0060.02610.92
5.2.70.0010.03010.83
5.2.60.0010.02610.83
5.2.50.0030.02310.81
5.2.40.0010.02810.83
5.2.30.0000.03310.83
5.2.20.0050.02710.76
5.2.10.0060.02510.78
5.2.00.0040.02510.64
5.1.60.0040.01710.34
5.1.50.0050.02310.33
5.1.40.0050.02210.29
5.1.30.0020.02810.40
5.1.20.0030.02710.55
5.1.10.0020.02910.34
5.1.00.0000.02810.38
5.0.50.0050.01810.16
5.0.40.0020.02210.16
5.0.30.0010.02910.16
5.0.20.0000.02210.16
5.0.10.0020.02110.16
5.0.00.0020.03010.16
4.4.90.0020.01510.16
4.4.80.0050.01210.16
4.4.70.0000.01810.16
4.4.60.0020.01710.16
4.4.50.0020.01610.16
4.4.40.0030.02310.16
4.4.30.0020.01510.16
4.4.20.0000.01810.16
4.4.10.0020.01510.16
4.4.00.0000.02610.16
4.3.110.0000.02010.16
4.3.100.0020.01710.16
4.3.90.0040.01210.16
4.3.80.0030.01810.16
4.3.70.0020.01710.16
4.3.60.0030.01510.16
4.3.50.0010.01510.16
4.3.40.0010.02110.16
4.3.30.0030.01510.16
4.3.20.0040.01510.16
4.3.10.0000.01610.16
4.3.00.0030.01610.16

preferences:
82.22 ms | 403 KiB | 5 Q