3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; class Foo { public function bar() { $closure = eval('return function ($__contextVariables__){unset($__contextVariables__);return function (){};};'); $closure = $closure->bindTo(new stdClass(), 'stdClass'); var_dump($closure()); } } (new 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.0120.00916.74
8.3.50.0080.01022.87
8.3.40.0170.00018.80
8.3.30.0040.01119.09
8.3.20.0040.01420.36
8.3.10.0040.00421.77
8.3.00.0080.00019.81
8.2.180.0160.00616.50
8.2.170.0120.00322.96
8.2.160.0100.00322.18
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00020.94
8.2.110.0050.00522.20
8.2.100.0090.00618.03
8.2.90.0060.00319.23
8.2.80.0050.00517.97
8.2.70.0000.00917.63
8.2.60.0060.00317.77
8.2.50.0040.00418.07
8.2.40.0080.00018.22
8.2.30.0000.00818.16
8.2.20.0060.00317.73
8.2.10.0000.00818.04
8.2.00.0070.00017.71
8.1.280.0100.00725.92
8.1.270.0080.00823.84
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0040.00424.05
8.1.230.0000.01318.96
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0040.00418.69
8.1.160.0040.00421.93
8.1.150.0040.00418.87
8.1.140.0020.00517.44
8.1.130.0070.00017.82
8.1.120.0050.00217.46
8.1.110.0030.00517.50
8.1.100.0050.00217.50
8.1.90.0040.00417.30
8.1.80.0040.00417.42
8.1.70.0040.00417.42
8.1.60.0090.00017.60
8.1.50.0030.00617.57
8.1.40.0000.00717.40
8.1.30.0040.00417.65
8.1.20.0030.00517.66
8.1.10.0040.00417.45
8.1.00.0000.00717.39
8.0.300.0080.00018.77
8.0.290.0080.00016.58
8.0.280.0070.00018.44
8.0.270.0070.00017.17
8.0.260.0070.00017.24
8.0.250.0040.00417.04
8.0.240.0030.00616.91
8.0.230.0040.00417.05
8.0.220.0030.00416.98
8.0.210.0040.00416.98
8.0.200.0000.00717.03
8.0.190.0030.00616.98
8.0.180.0000.00816.89
8.0.170.0000.00716.86
8.0.160.0030.00517.00
8.0.150.0070.00016.79
8.0.140.0030.00716.86
8.0.130.0000.00613.36
8.0.120.0030.00516.91
8.0.110.0040.00416.95
8.0.100.0040.00416.97
8.0.90.0040.00417.00
8.0.80.0070.01416.84
8.0.70.0000.00716.98
8.0.60.0000.00816.89
8.0.50.0000.00716.79
8.0.30.0070.01417.09
8.0.20.0110.00817.40
8.0.10.0070.00016.87
8.0.00.0080.01216.73
7.4.330.0000.00515.00
7.4.320.0060.00016.60
7.4.300.0030.00316.57
7.4.290.0030.00316.35
7.4.280.0090.00016.54
7.4.270.0030.00316.64
7.4.260.0000.00716.41
7.4.250.0070.00016.47
7.4.240.0020.00516.59
7.4.230.0030.00316.38
7.4.220.0040.01416.58
7.4.210.0060.00916.53
7.4.200.0070.00016.59
7.4.160.0090.00616.37
7.4.150.0170.00017.40
7.4.140.0080.01017.86
7.4.130.0120.00716.55
7.4.120.0080.00816.62
7.4.110.0140.00416.66
7.4.100.0080.01116.46
7.4.90.0140.00616.51
7.4.80.0030.01319.39
7.4.70.0130.01016.58
7.4.60.0030.01816.56
7.4.50.0040.00416.37
7.4.40.0130.00416.63
7.4.30.0060.00916.38
7.4.00.0080.00714.80
7.3.330.0020.00413.31
7.3.320.0050.00013.22
7.3.310.0070.00016.37
7.3.300.0000.00716.23
7.3.290.0120.00616.37
7.3.280.0060.01016.34
7.3.270.0110.00717.40
7.3.260.0140.00316.32
7.3.250.0090.01116.48
7.3.240.0100.00916.32
7.3.230.0120.00416.39
7.3.210.0090.00916.30
7.3.200.0090.00919.39
7.3.190.0100.00716.46
7.3.180.0030.01316.54
7.3.170.0090.01216.36
7.3.160.0060.01116.48
7.3.120.0020.01314.97
7.3.110.0070.01014.87
7.3.100.0000.01714.88
7.3.90.0060.01114.96
7.3.80.0060.00914.84
7.3.70.0060.00914.96
7.3.60.0090.00614.70
7.3.50.0000.01414.39
7.3.40.0100.00314.96
7.3.30.0060.00914.71
7.3.20.0070.00316.72
7.3.10.0050.00816.35
7.3.00.0100.00316.45
7.2.330.0140.00416.63
7.2.320.0150.00316.66
7.2.310.0080.00816.70
7.2.300.0120.00616.49
7.2.290.0110.00516.64
7.2.250.0000.01515.03
7.2.240.0130.00314.83
7.2.230.0030.01314.78
7.2.220.0070.01114.96
7.2.210.0100.00615.23
7.2.200.0060.00315.03
7.2.190.0070.01115.11
7.2.180.0120.00315.21
7.2.170.0060.00915.04
7.2.130.0070.00716.67
7.2.120.0000.00916.55
7.2.110.0030.01216.68
7.2.100.0100.00716.38
7.2.90.0060.00916.70
7.2.80.0100.00317.00
7.2.70.0040.00416.97
7.2.60.0100.00516.64
7.2.50.0040.01116.61
7.2.40.0050.00516.50
7.2.30.0060.00616.85
7.2.20.0030.00916.71
7.2.10.0090.00916.86
7.2.00.0030.01318.01
7.1.330.0090.00615.81
7.1.320.0080.00015.65
7.1.310.0100.00715.75
7.1.300.0070.01015.78
7.1.290.0070.00715.87
7.1.280.0040.00815.77
7.1.270.0090.00315.65
7.1.260.0030.00615.65
7.1.250.0100.00715.14
7.1.200.0070.00715.46
7.1.100.0080.00818.17
7.1.70.0000.00816.86
7.1.60.0100.01319.40
7.1.50.0100.01316.71
7.1.00.0030.07722.27
7.0.200.0000.01016.64
7.0.140.0000.07721.98
7.0.60.0070.08319.82
7.0.50.0030.05317.87
7.0.40.0030.06320.03
7.0.30.0330.06020.16
7.0.20.0300.08320.16
7.0.10.0070.08720.05
7.0.00.0100.08020.22
5.6.280.0030.07321.04
5.6.210.0070.05320.69
5.6.200.0100.07718.26
5.6.190.0130.03320.51
5.6.180.0230.08720.52
5.6.170.0370.08020.48
5.6.160.0030.08720.39
5.6.150.0030.06718.13
5.6.140.0030.05018.22
5.6.130.0100.05718.18
5.6.120.0000.04720.99
5.6.110.0070.07721.00
5.6.100.0100.08721.09
5.6.90.0070.06021.13
5.6.80.0070.08320.40
5.5.350.0270.08320.36
5.5.340.0100.04317.95
5.5.330.0170.05320.29
5.5.320.0130.08720.29
5.5.310.0370.07320.19
5.5.300.0070.05017.97
5.5.290.0030.05017.98
5.5.280.0100.07720.90
5.5.270.0170.03320.89
5.5.260.0130.08020.89
5.5.250.0100.04320.78
5.5.240.0070.08720.04
5.4.450.0930.05319.45
5.4.440.0170.05719.58
5.4.430.0200.05319.67
5.4.420.0270.04319.44
5.4.410.0070.06019.44
5.4.400.1030.08018.77
5.4.390.1300.07018.86
5.4.380.0130.05718.77
5.4.370.0030.04318.64
5.4.360.0100.03018.68
5.4.350.0170.06612.03
5.4.340.0100.03612.02
5.4.320.0050.03712.52
5.4.310.0050.03812.51
5.4.300.0060.04012.51
5.4.290.0060.03612.51
5.4.280.0040.03612.40
5.4.270.0060.03612.41
5.4.260.0050.03812.40
5.4.250.0060.04012.40
5.4.240.0050.03512.40
5.4.230.0020.04512.39
5.4.220.0070.04112.39
5.4.210.0090.04012.40
5.4.200.0110.04512.40
5.4.190.0060.04212.39
5.4.180.0040.03912.39
5.4.170.0070.03612.40
5.4.160.0070.03812.40
5.4.150.0100.03812.39
5.4.140.0070.04212.08
5.4.130.0040.03712.07
5.4.120.0050.03512.03
5.4.110.0030.04012.02
5.4.100.0070.03512.02
5.4.90.0050.03712.02
5.4.80.0050.03712.02
5.4.70.0040.03612.02
5.4.60.0060.03412.02
5.4.50.0060.03512.02
5.4.40.0040.03612.01
5.4.30.0050.03712.00
5.4.20.0040.03912.00
5.4.10.0050.03612.00
5.4.00.0050.03611.49
5.3.290.0050.04012.80
5.3.280.0050.03812.70
5.3.270.0110.03612.72
5.3.260.0080.03712.72
5.3.250.0040.04412.72
5.3.240.0050.03712.72
5.3.230.0060.03712.71
5.3.220.0040.04212.68
5.3.210.0040.04312.68
5.3.200.0080.03412.68
5.3.190.0030.04012.68
5.3.180.0030.04012.68
5.3.170.0060.03712.67
5.3.160.0060.03612.67
5.3.150.0090.04012.67
5.3.140.0060.04112.66
5.3.130.0040.04212.66
5.3.120.0060.04112.66
5.3.110.0090.04512.66
5.3.100.0060.03512.12
5.3.90.0050.03612.11
5.3.80.0070.03412.10
5.3.70.0060.03612.10
5.3.60.0060.03512.08
5.3.50.0090.03812.02
5.3.40.0050.03812.02
5.3.30.0070.03211.98
5.3.20.0060.03311.76
5.3.10.0080.03111.73
5.3.00.0070.03311.72
5.2.170.0040.0309.18
5.2.160.0050.0299.18
5.2.150.0030.0329.18
5.2.140.0040.0309.18
5.2.130.0030.0309.14
5.2.120.0070.0349.14
5.2.110.0070.0319.14
5.2.100.0080.0339.14
5.2.90.0070.0299.14
5.2.80.0060.0289.14
5.2.70.0030.0319.14
5.2.60.0000.0359.09
5.2.50.0060.0289.06
5.2.40.0080.0259.04
5.2.30.0020.0319.02
5.2.20.0050.0279.00
5.2.10.0060.0278.93
5.2.00.0100.0238.79
5.1.60.0030.0248.07
5.1.50.0040.0248.07
5.1.40.0060.0228.05
5.1.30.0010.0298.40
5.1.20.0080.0238.42
5.1.10.0030.0268.14
5.1.00.0040.0248.14
5.0.50.0020.0246.62
5.0.40.0070.0216.48
5.0.30.0040.0306.29
5.0.20.0040.0196.27
5.0.10.0030.0206.24
5.0.00.0020.0316.23
4.4.90.0020.0164.78
4.4.80.0020.0154.76
4.4.70.0040.0184.75
4.4.60.0070.0154.75
4.4.50.0050.0134.77
4.4.40.0020.0304.71
4.4.30.0030.0214.76
4.4.20.0040.0144.85
4.4.10.0030.0224.85
4.4.00.0030.0244.76
4.3.110.0040.0144.67
4.3.100.0020.0174.67
4.3.90.0020.0154.63
4.3.80.0040.0304.58
4.3.70.0010.0224.63
4.3.60.0050.0124.63
4.3.50.0020.0154.63
4.3.40.0030.0234.54
4.3.30.0010.0163.28
4.3.20.0000.0173.26
4.3.10.0010.0163.21
4.3.00.0200.0177.15

preferences:
41.83 ms | 401 KiB | 5 Q