3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassLoader { private $classMap = 'Class Map'; } $loader = new ClassLoader; $func_without_closure_bind = function() use ($loader) { var_dump($loader->classMap); }; $func_with_closure_bind = Closure::bind($func_without_closure_bind, null, ClassLoader::class); $func_with_closure_bind(); //$func_without_closure_bind();

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.0060.00918.43
8.3.60.0140.00716.49
8.3.50.0150.00521.92
8.3.40.0070.00718.53
8.3.30.0110.00318.68
8.3.20.0040.00419.02
8.3.10.0050.00321.85
8.3.00.0040.00419.04
8.2.190.0130.00716.79
8.2.180.0070.00718.16
8.2.170.0040.01122.96
8.2.160.0110.00420.52
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0080.00019.77
8.2.120.0050.00326.35
8.2.110.0040.00421.05
8.2.100.0090.00317.90
8.2.90.0040.00417.75
8.2.80.0060.00317.97
8.2.70.0000.00817.89
8.2.60.0060.00318.09
8.2.50.0000.00818.10
8.2.40.0060.00320.64
8.2.30.0040.00419.29
8.2.20.0080.00017.99
8.2.10.0070.00018.08
8.2.00.0040.00417.73
8.1.280.0070.00725.92
8.1.270.0000.00822.14
8.1.260.0030.00528.09
8.1.250.0000.00828.09
8.1.240.0070.00417.36
8.1.230.0110.00019.54
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0060.00317.23
8.1.190.0090.00017.22
8.1.180.0070.00018.10
8.1.170.0040.00418.55
8.1.160.0000.00819.02
8.1.150.0040.00422.05
8.1.140.0040.00419.57
8.1.130.0020.00517.71
8.1.120.0000.00717.47
8.1.110.0030.00617.44
8.1.100.0040.00317.49
8.1.90.0000.00717.37
8.1.80.0050.00217.44
8.1.70.0000.00817.36
8.1.60.0060.00317.63
8.1.50.0000.00817.42
8.1.40.0030.00517.57
8.1.30.0040.00417.48
8.1.20.0030.00617.55
8.1.10.0090.00017.53
8.1.00.0000.00917.48
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00318.45
8.0.270.0000.00717.26
8.0.260.0030.00317.27
8.0.250.0030.00317.00
8.0.240.0030.00316.83
8.0.230.0070.00016.96
8.0.220.0000.00816.90
8.0.210.0070.00016.79
8.0.200.0030.00316.95
8.0.190.0030.00716.93
8.0.180.0050.00316.80
8.0.170.0040.00416.90
8.0.160.0000.00716.93
8.0.150.0050.00316.82
8.0.140.0000.00716.80
8.0.130.0000.00613.28
8.0.120.0040.00416.84
8.0.110.0040.00416.88
8.0.100.0040.00416.71
8.0.90.0050.00216.78
8.0.80.0090.00616.88
8.0.70.0000.00716.93
8.0.60.0000.00716.89
8.0.50.0040.00416.77
8.0.30.0140.00616.92
8.0.20.0050.01417.40
8.0.10.0050.00316.87
8.0.00.0070.01116.82
7.4.330.0030.00315.55
7.4.320.0030.00316.56
7.4.300.0000.00616.48
7.4.290.0070.00016.49
7.4.280.0000.00716.61
7.4.270.0030.00316.51
7.4.260.0100.00016.48
7.4.250.0030.00316.52
7.4.240.0070.00016.61
7.4.230.0030.00316.58
7.4.220.0140.00916.55
7.4.210.0060.01116.56
7.4.200.0030.00316.52
7.4.160.0090.00916.54
7.4.150.0130.00617.40
7.4.140.0090.00917.86
7.4.130.0080.01016.43
7.4.120.0080.01116.46
7.4.110.0110.00616.47
7.4.100.0160.00616.59
7.4.90.0090.00916.58
7.4.80.0060.01216.46
7.4.70.0120.00316.64
7.4.60.0090.00616.62
7.4.50.0070.00716.38
7.4.40.0100.00916.63
7.4.30.0140.00416.63
7.4.10.0100.01015.02
7.4.00.0080.01015.02
7.3.330.0000.00513.09
7.3.320.0020.00213.38
7.3.310.0040.00416.16
7.3.300.0030.00316.26
7.3.290.0030.00316.30
7.3.280.0080.00816.29
7.3.270.0080.00817.40
7.3.260.0120.00616.59
7.3.250.0080.00916.29
7.3.240.0090.01016.32
7.3.230.0090.01316.39
7.3.210.0100.00716.36
7.3.200.0090.01219.39
7.3.190.0080.00816.46
7.3.180.0060.00916.41
7.3.170.0090.00916.36
7.3.160.0110.00616.34
7.3.130.0060.01214.65
7.3.120.0040.01414.80
7.3.110.0070.01414.71
7.3.100.0040.01214.44
7.3.90.0040.01214.44
7.3.80.0100.00314.76
7.3.70.0040.00914.75
7.3.60.0030.01414.89
7.3.50.0000.00914.73
7.3.40.0060.00314.72
7.3.30.0000.01514.80
7.3.20.0040.00416.68
7.3.10.0070.00716.46
7.3.00.0000.01316.49
7.2.330.0100.00716.43
7.2.320.0090.00916.38
7.2.310.0030.01316.54
7.2.300.0200.00316.47
7.2.290.0060.01116.49
7.2.260.0030.01514.59
7.2.250.0040.01414.50
7.2.240.0070.00714.95
7.2.230.0030.01015.05
7.2.220.0060.00914.46
7.2.210.0000.00914.70
7.2.200.0000.00914.97
7.2.190.0070.00714.61
7.2.180.0000.00914.71
7.2.170.0030.01314.99
7.2.160.0070.00715.07
7.2.150.0000.01516.96
7.2.140.0090.00616.86
7.2.130.0090.00916.77
7.2.120.0120.00016.82
7.2.110.0030.00616.77
7.2.100.0030.01016.82
7.2.90.0030.01316.99
7.2.80.0100.00016.92
7.2.70.0070.00717.06
7.2.60.0090.00616.98
7.2.50.0040.01517.03
7.2.40.0120.00616.77
7.2.30.0000.01516.93
7.2.20.0000.00916.96
7.2.10.0030.01017.02
7.2.00.0060.00918.05
7.1.330.0040.01115.44
7.1.320.0040.01215.65
7.1.310.0040.00715.46
7.1.300.0070.00715.85
7.1.290.0030.00615.69
7.1.280.0000.01515.61
7.1.270.0000.00915.79
7.1.260.0000.01315.80
7.1.250.0040.01115.67
7.1.240.0170.00315.77
7.1.230.0060.00315.67
7.1.220.0030.00915.93
7.1.210.0150.00315.44
7.1.200.0040.01415.69
7.1.190.0060.00615.61
7.1.180.0070.00315.32
7.1.170.0000.01215.70
7.1.160.0060.00915.86
7.1.150.0060.00615.93
7.1.140.0060.00915.85
7.1.130.0030.01015.71
7.1.120.0080.00415.86
7.1.110.0070.00715.91
7.1.100.0030.01315.80
7.1.90.0030.00615.51
7.1.80.0070.01015.72
7.1.70.0060.00616.45
7.1.60.0060.00616.57
7.1.50.0050.01016.18
7.1.40.0040.00916.28
7.1.30.0080.01216.10
7.1.20.0020.01416.29
7.1.10.0040.00716.09
7.1.00.0050.00416.32
7.0.330.0140.00315.25
7.0.320.0070.00715.52
7.0.310.0100.00715.06
7.0.300.0070.00715.34
7.0.290.0060.00615.22
7.0.280.0060.00615.00
7.0.270.0090.00615.26
7.0.260.0070.00715.15
7.0.250.0060.00315.18
7.0.240.0040.01215.54
7.0.230.0000.01615.40
7.0.220.0090.00615.44
7.0.210.0150.00015.24
7.0.200.0050.00816.06
7.0.190.0060.00515.87
7.0.180.0030.00915.93
7.0.170.0040.00915.79
7.0.160.0050.00515.77
7.0.150.0020.00915.84
7.0.140.0040.00615.89
7.0.130.0020.00915.98
7.0.120.0020.00815.96
7.0.110.0050.00715.94
7.0.100.0030.00616.02
7.0.90.0120.00515.95
7.0.80.0020.01015.74
7.0.70.0060.00415.87
7.0.60.0060.00415.83
7.0.50.0040.00615.89
7.0.40.0060.00614.62
7.0.30.0050.00714.73
7.0.20.0010.00714.73
7.0.10.0040.00914.73
7.0.00.0040.00414.79
5.6.400.0050.00514.26
5.6.390.0140.00714.21
5.6.380.0070.00314.46
5.6.370.0060.00814.32
5.6.360.0030.01013.94
5.6.350.0040.01214.14
5.6.340.0030.00614.35
5.6.330.0090.00014.26
5.6.320.0040.00814.59
5.6.310.0060.00614.50
5.6.300.0020.03117.60
5.6.290.0050.02517.71
5.6.280.0070.02017.49
5.6.270.0100.03317.63
5.6.260.0000.02717.46
5.6.250.0080.02517.44
5.6.240.0060.02617.47
5.6.230.0120.03717.65
5.6.220.0040.02717.48
5.6.210.0060.02317.45
5.6.200.0040.03317.64
5.6.190.0040.02517.63
5.6.180.0050.02517.65
5.6.170.0100.02917.59
5.6.160.0040.04617.69
5.6.150.0070.03317.75
5.6.140.0060.03817.49
5.6.130.0050.03917.43
5.6.120.0030.05017.47
5.6.110.0070.02917.53
5.6.100.0020.02817.63
5.6.90.0080.02217.62
5.6.80.0020.02417.17
5.6.70.0050.02317.17
5.6.60.0020.03117.28
5.6.50.0090.02917.20
5.6.40.0150.02417.19
5.6.30.0030.02217.23
5.6.20.0080.04317.04
5.6.10.0000.03617.24
5.6.00.0040.04117.19

preferences:
41.53 ms | 401 KiB | 5 Q