3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function bar(): callable { return function() { $this->get_emails(); }; } public function get_emails(): void { echo __METHOD__; } } $foo = new Foo(); $func = $foo->bar(); $func();

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.0100.00616.61
8.3.50.0040.01118.09
8.3.40.0110.00418.55
8.3.30.0150.00018.61
8.3.20.0080.00018.64
8.3.10.0000.00821.60
8.3.00.0050.00221.89
8.2.180.0140.00718.18
8.2.170.0070.01419.07
8.2.160.0080.00622.96
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0070.00020.66
8.2.110.0100.00319.02
8.2.100.0000.01217.91
8.2.90.0030.00617.63
8.2.80.0000.00917.97
8.2.70.0080.00018.04
8.2.60.0060.00318.22
8.2.50.0030.00518.10
8.2.40.0000.01019.34
8.2.30.0000.00720.64
8.2.20.0040.00417.94
8.2.10.0060.00317.98
8.2.00.0030.00518.19
8.1.280.0040.01125.92
8.1.270.0040.00420.24
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00423.96
8.1.230.0070.00417.46
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0000.00817.23
8.1.190.0040.00417.22
8.1.180.0000.00718.10
8.1.170.0000.00918.71
8.1.160.0000.00718.95
8.1.150.0000.00818.92
8.1.140.0030.00318.80
8.1.130.0000.00820.17
8.1.120.0000.00817.44
8.1.110.0040.00417.47
8.1.100.0000.00817.45
8.1.90.0000.00717.47
8.1.80.0000.00717.38
8.1.70.0000.01117.44
8.1.60.0050.00317.43
8.1.50.0070.00017.57
8.1.40.0040.00417.52
8.1.30.0080.00017.61
8.1.20.0000.00717.61
8.1.10.0040.00417.57
8.1.00.0020.00517.44
8.0.300.0030.00518.77
8.0.290.0030.00516.75
8.0.280.0050.00218.46
8.0.270.0040.00417.30
8.0.260.0030.00318.43
8.0.250.0040.00416.77
8.0.240.0040.00416.90
8.0.230.0040.00416.77
8.0.220.0070.00016.72
8.0.210.0050.00316.82
8.0.200.0060.00016.97
8.0.190.0070.00016.97
8.0.180.0000.00716.98
8.0.170.0030.00616.96
8.0.160.0060.00316.79
8.0.150.0040.00416.81
8.0.140.0060.00316.86
8.0.130.0030.00313.33
8.0.120.0060.00316.94
8.0.110.0000.00816.91
8.0.100.0090.00016.80
8.0.90.0030.00516.71
8.0.80.0060.00916.85
8.0.70.0070.00016.91
8.0.60.0040.00416.96
8.0.50.0000.00716.82
8.0.30.0130.00617.13
8.0.20.0110.01117.40
8.0.10.0040.00417.00
8.0.00.0080.01016.57
7.4.330.0050.00015.55
7.4.320.0030.00316.69
7.4.300.0050.00316.66
7.4.290.0020.00516.46
7.4.280.0050.00316.61
7.4.270.0000.00716.46
7.4.260.0070.00016.47
7.4.250.0040.00416.58
7.4.240.0070.00016.59
7.4.230.0000.00816.34
7.4.220.0030.00516.40
7.4.210.0080.01116.63
7.4.200.0050.00216.71
7.4.140.0090.00817.86
7.4.130.0110.00716.51
7.4.120.0080.01116.52
7.4.110.0120.00616.64
7.4.100.0060.01216.51
7.4.90.0090.00816.49
7.4.80.0090.00919.39
7.4.70.0060.01116.52
7.4.60.0070.01016.47
7.4.50.0150.00016.50
7.4.40.0090.00916.63
7.4.10.0070.01014.59
7.4.00.0080.00714.91
7.3.330.0000.00513.16
7.3.320.0000.00513.37
7.3.310.0000.00716.15
7.3.300.0000.00716.34
7.3.290.0000.00716.23
7.3.280.0120.00616.23
7.3.260.0110.00916.35
7.3.240.0090.01216.36
7.3.230.0070.01016.29
7.3.210.0120.00616.60
7.3.200.0000.01616.29
7.3.190.0000.01816.39
7.3.180.0040.01416.25
7.3.170.0100.00716.32
7.3.160.0080.01016.41
7.3.130.0100.01014.65
7.3.120.0080.00914.77
7.3.110.0100.00814.79
7.3.100.0080.00714.73
7.3.90.0100.00614.68
7.3.80.0040.01214.66
7.3.70.0100.00514.64
7.3.60.0060.00814.49
7.3.50.0070.00814.54
7.3.40.0050.00914.55
7.3.30.0080.00414.74
7.3.20.0080.00716.53
7.3.10.0030.00916.46
7.3.00.0060.00616.40
7.2.330.0130.01016.78
7.2.320.0150.00616.77
7.2.310.0100.00716.45
7.2.300.0090.01216.79
7.2.290.0140.00316.43
7.2.260.0130.00614.59
7.2.250.0100.00715.12
7.2.240.0110.00715.01
7.2.230.0030.00915.07
7.2.220.0040.01214.99
7.2.210.0070.00614.87
7.2.200.0020.01414.88
7.2.190.0040.01014.89
7.2.180.0030.01514.96
7.2.170.0030.01214.88
7.2.160.0030.01314.89
7.2.150.0040.00816.73
7.2.140.0030.01016.93
7.2.130.0000.01216.38
7.2.120.0060.00916.74
7.2.110.0080.00316.68
7.2.100.1230.00415.46
7.2.90.0580.00715.77
7.2.80.0910.00915.73
7.2.70.0650.00815.98
7.2.60.0930.01115.69
7.2.50.0700.00815.69
7.2.40.0750.01015.81
7.2.30.0660.00615.85
7.2.20.0800.00915.66
7.2.10.0930.00515.86
7.2.00.1170.01015.93
7.1.330.0060.00715.56
7.1.320.0050.00815.57
7.1.310.0060.00715.48
7.1.300.0040.01015.56
7.1.290.0080.00815.48
7.1.280.0090.00315.65
7.1.270.0030.01015.69
7.1.260.0090.00615.56
7.1.250.0030.00615.34
7.1.240.0000.01515.45
7.1.230.0040.00415.55
7.1.220.1220.00714.79
7.1.210.0840.00814.69
7.1.200.1040.00714.55
7.1.190.0710.00714.53
7.1.180.0730.00614.59
7.1.170.0480.01014.62
7.1.160.0790.01214.67
7.1.150.0710.00514.69
7.1.140.0820.00414.49
7.1.130.1370.01114.59
7.1.120.1260.00814.52
7.1.110.0810.00614.66
7.1.100.0950.00714.69
7.1.90.1260.00714.53
7.1.80.0900.00714.52
7.1.70.1510.00314.53
7.1.60.1140.00623.42
7.1.50.1620.01123.53
7.1.40.1930.01123.74
7.1.30.1950.00823.54
7.1.20.1450.00323.44
7.1.10.1300.01214.38
7.1.00.1160.00814.59
7.0.330.0000.01215.07
7.0.320.0060.00814.97
7.0.310.0060.00914.78
7.0.300.0070.00715.16
7.0.290.0040.01414.84
7.0.280.0060.00915.20
7.0.270.0080.00815.14
7.0.260.0070.00714.93
7.0.250.0060.00314.73
7.0.240.0000.01015.25
7.0.230.0030.00715.14
7.0.220.0060.00615.30
7.0.210.0000.01315.30
7.0.200.0070.00715.19
7.0.190.0030.01215.13
7.0.180.0080.00815.08
7.0.170.0030.01014.95
7.0.160.0030.00615.05
7.0.150.0040.00715.24
7.0.140.0060.00614.92
7.0.130.0030.00715.44
7.0.120.0090.00315.28
7.0.110.0030.01015.40
7.0.100.0050.00515.05
7.0.90.0000.00915.10
7.0.80.0060.00314.99
7.0.70.0000.01215.25
7.0.60.0030.01015.04
7.0.50.0070.00715.11
7.0.40.0000.01013.31
7.0.30.0030.01213.30
7.0.20.0090.00313.48
7.0.10.0070.00713.00
7.0.00.0070.00713.18
5.6.400.0090.00613.98
5.6.390.0060.00913.91
5.6.380.0020.01213.80
5.6.370.0070.00714.14
5.6.360.0000.01514.08
5.6.350.0040.01514.14
5.6.340.0030.01313.64
5.6.330.0040.01113.79
5.6.320.0080.00313.82
5.6.310.0030.01014.22
5.6.300.0030.00713.77
5.6.290.0070.00714.03
5.6.280.0040.00414.27
5.6.270.0000.01314.02
5.6.260.0060.00914.10
5.6.250.0000.01313.70
5.6.240.0000.00914.04
5.6.230.0030.00913.97
5.6.220.0060.00313.64
5.6.210.0070.00713.79
5.6.200.0030.01314.08
5.6.190.0030.00714.00
5.6.180.0030.00913.89
5.6.170.0030.01313.94
5.6.160.0060.00313.96
5.6.150.0040.00713.81
5.6.140.0120.00014.07
5.6.130.0100.00314.04
5.6.120.0060.00914.13
5.6.110.0100.00014.13
5.6.100.0090.00314.07
5.6.90.0000.01313.99
5.6.80.0070.00713.87
5.6.70.0090.00613.54
5.6.60.0060.00313.84
5.6.50.0080.00813.80
5.6.40.0030.00813.71
5.6.30.0060.00613.80
5.6.20.0060.00613.73
5.6.10.0000.01414.15
5.6.00.0030.01413.92

preferences:
33.96 ms | 400 KiB | 5 Q