3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function x(callable $c) { $c(); } x(new class{ function __invoke(){ echo 'test'; } });

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.0090.00918.02
8.3.50.0070.00716.24
8.3.40.0070.01418.67
8.3.30.0110.01118.64
8.3.20.0040.00420.29
8.3.10.0040.00421.73
8.3.00.0030.00520.16
8.2.180.0070.01116.63
8.2.170.0100.00722.96
8.2.160.0100.00320.22
8.2.150.0080.00024.18
8.2.140.0140.00024.66
8.2.130.0030.00526.16
8.2.120.0090.00017.50
8.2.110.0040.00720.35
8.2.100.0040.00817.63
8.2.90.0000.00819.04
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0050.00517.91
8.2.50.0000.00818.07
8.2.40.0000.00719.32
8.2.30.0050.00520.52
8.2.20.0060.00317.69
8.2.10.0020.00517.86
8.2.00.0050.00317.99
8.1.280.0100.00625.92
8.1.270.0040.00423.97
8.1.260.0070.00426.35
8.1.250.0000.00728.09
8.1.240.0000.00923.79
8.1.230.0060.00617.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0050.00517.22
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0030.00618.43
8.1.160.0070.00022.04
8.1.150.0060.00318.86
8.1.140.0000.01017.30
8.1.130.0030.00317.50
8.1.120.0040.00417.39
8.1.110.0030.00517.27
8.1.100.0000.00817.28
8.1.90.0050.00217.35
8.1.80.0000.00717.32
8.1.70.0000.00717.32
8.1.60.0060.00317.52
8.1.50.0000.00817.33
8.1.40.0000.00817.35
8.1.30.0000.00917.59
8.1.20.0000.00717.43
8.1.10.0040.00417.46
8.1.00.0050.00317.36
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.31
8.0.270.0000.00817.29
8.0.260.0030.00317.25
8.0.250.0060.00317.03
8.0.240.0030.00317.04
8.0.230.0040.00416.90
8.0.220.0000.00716.97
8.0.210.0070.00016.96
8.0.200.0070.00016.88
8.0.190.0060.00317.00
8.0.180.0040.00417.01
8.0.170.0100.00016.91
8.0.160.0000.00716.81
8.0.150.0070.00016.94
8.0.140.0000.00816.88
8.0.130.0060.00013.35
8.0.120.0080.00016.91
8.0.110.0070.00016.86
8.0.100.0000.00716.79
8.0.90.0040.00416.98
8.0.80.0060.01017.01
8.0.70.0040.00416.82
8.0.60.0060.00316.88
8.0.50.0000.00817.01
8.0.30.0120.00717.02
8.0.20.0150.00917.40
8.0.10.0000.00816.94
8.0.00.0120.00916.73
7.4.330.0020.00215.09
7.4.320.0000.00616.44
7.4.300.0000.00616.44
7.4.290.0000.00716.48
7.4.280.0000.00716.58
7.4.270.0000.00716.47
7.4.260.0070.00016.48
7.4.250.0050.00216.39
7.4.240.0020.00516.44
7.4.230.0070.00016.50
7.4.220.0190.00316.62
7.4.210.0150.00316.63
7.4.200.0070.00016.34
7.4.160.0000.01616.57
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0110.01016.53
7.4.120.0070.01016.46
7.4.110.0110.00716.65
7.4.100.0150.00916.53
7.4.90.0100.00916.42
7.4.80.0090.01519.39
7.4.70.0130.00716.54
7.4.60.0090.00816.44
7.4.50.0030.00316.51
7.4.40.0100.00616.45
7.4.30.0070.01016.43
7.4.10.0090.00915.11
7.4.00.0110.00614.93
7.3.330.0030.00313.27
7.3.320.0050.00013.29
7.3.310.0000.00716.19
7.3.300.0000.00816.34
7.3.290.0100.00716.29
7.3.280.0120.00716.29
7.3.270.0120.00617.40
7.3.260.0080.00916.34
7.3.250.0080.01116.40
7.3.240.0060.02016.59
7.3.230.0110.01216.39
7.3.210.0140.00416.57
7.3.200.0130.00916.40
7.3.190.0060.01116.42
7.3.180.0110.00716.46
7.3.170.0110.01116.27
7.3.160.0090.00616.40
7.3.130.0060.01214.57
7.3.120.0080.01014.59
7.3.110.0070.00914.68
7.3.100.0090.00814.82
7.3.90.0050.00914.68
7.3.80.0030.01114.90
7.3.70.0070.00714.60
7.3.60.0050.00714.66
7.3.50.0130.00014.81
7.3.40.0050.00814.85
7.3.30.0060.00614.74
7.3.20.0050.00816.52
7.3.10.0030.00916.69
7.3.00.0060.00816.65
7.2.330.0070.01016.64
7.2.320.0110.00616.66
7.2.310.0140.00316.61
7.2.300.0000.01616.54
7.2.290.0070.01116.61
7.2.260.0070.01014.70
7.2.250.0050.01114.95
7.2.240.0050.01114.95
7.2.230.0060.00715.06
7.2.220.0050.00915.03
7.2.210.0020.01114.97
7.2.200.0030.01114.94
7.2.190.0030.01214.83
7.2.180.0030.01014.95
7.2.170.0120.00314.95
7.2.160.0070.00714.73
7.2.150.0030.00616.96
7.2.140.0000.01416.81
7.2.130.0090.00316.60
7.2.120.0000.01216.76
7.2.110.0080.00716.89
7.2.100.0050.01116.64
7.2.90.0070.00916.80
7.2.80.0050.01016.95
7.2.70.0060.00616.62
7.2.60.0110.00416.71
7.2.50.0090.00516.84
7.2.40.0050.00816.80
7.2.30.0060.00816.90
7.2.20.0090.00216.75
7.2.10.0030.01016.78
7.2.00.0030.01117.71
7.1.330.0070.00615.50
7.1.320.0050.00715.57
7.1.310.0050.00815.77
7.1.300.0030.00815.68
7.1.290.0070.00715.59
7.1.280.0030.00815.72
7.1.270.0040.00515.68
7.1.260.0050.00815.74
7.1.250.0040.00715.56
7.1.240.0040.00815.68
7.1.230.0040.00815.70
7.1.220.0000.01315.63
7.1.210.0120.00015.67
7.1.200.0050.00715.65
7.1.190.0030.01015.79
7.1.180.0060.00915.69
7.1.170.0000.01715.81
7.1.160.0070.00315.38
7.1.150.0040.01115.63
7.1.140.0000.01115.60
7.1.130.0060.00315.74
7.1.120.0040.00815.60
7.1.110.0000.01315.45
7.1.100.0030.01017.00
7.1.90.0040.00715.81
7.1.80.0030.01015.68
7.1.70.0080.00516.38
7.1.60.0050.01417.36
7.1.50.0060.01116.32
7.1.40.0030.01515.78
7.1.30.0030.01015.72
7.1.20.0070.00715.57
7.1.10.0090.00015.83
7.1.00.0000.04719.13
7.0.330.0060.00315.32
7.0.320.0070.00715.39
7.0.310.0070.00715.49
7.0.300.0030.01215.31
7.0.290.0030.00715.32
7.0.280.0040.01015.44
7.0.270.0030.00615.38
7.0.260.0060.00315.51
7.0.250.0030.01315.41
7.0.240.0030.00915.40
7.0.230.0000.00815.36
7.0.220.0030.00615.31
7.0.210.0060.00614.98
7.0.200.0040.00915.96
7.0.190.0090.00915.38
7.0.180.0000.00915.41
7.0.170.0040.00415.39
7.0.160.0110.00415.37
7.0.150.0070.00415.33
7.0.140.0000.01015.30
7.0.130.0060.00315.27
7.0.120.0030.01015.30
7.0.110.0070.00715.30
7.0.100.0070.00415.11
7.0.90.0060.00615.25
7.0.80.0060.00315.15
7.0.70.0040.00715.28
7.0.60.0060.04417.60
7.0.50.0080.04016.63
7.0.40.0050.02616.79
7.0.30.0150.04416.80
7.0.20.0160.03716.67
7.0.10.0080.04516.77
7.0.00.0070.04616.73
5.6.400.0030.01014.33
5.6.390.0000.00914.23
5.6.380.0000.01114.27
5.6.370.0000.01714.11
5.6.360.0130.00014.32
5.6.350.0060.00614.26
5.6.340.0030.00614.11
5.6.330.0050.00514.48
5.6.320.0060.01014.23
5.6.310.0070.01014.11
5.6.300.0110.00413.96
5.6.290.0060.00914.18
5.6.280.0050.02817.61
5.6.270.0030.01214.23
5.6.260.0080.00814.30
5.6.250.0030.00913.91
5.6.240.0080.00314.41
5.6.230.0060.00313.98
5.6.220.0060.00913.81
5.6.210.0020.02717.30
5.6.200.0060.02116.15
5.6.190.0060.02517.51
5.6.180.0170.04217.18
5.6.170.0180.03517.21
5.6.160.0100.04017.28
5.6.150.0100.02216.32
5.6.140.0000.02916.21
5.6.130.0090.04316.08
5.6.120.0070.04017.44
5.6.110.0080.04317.46
5.6.100.0050.03717.57
5.6.90.0050.04417.49
5.6.80.0090.03317.18
5.6.70.0060.00314.10
5.6.60.0000.01213.95
5.6.50.0030.00913.94
5.6.40.0060.00613.93
5.6.30.0090.00013.97
5.6.20.0000.01013.99
5.6.10.0000.01414.17
5.6.00.0110.00013.85
5.5.380.0060.00613.66
5.5.370.0030.00514.26
5.5.360.0150.00013.98
5.5.350.0050.04517.16
5.5.340.0070.03315.97
5.5.330.0050.03317.17
5.5.320.0080.04217.14
5.5.310.0150.04217.19
5.5.300.0060.04416.10
5.5.290.0100.01816.18
5.5.280.0100.04317.25
5.5.270.0100.02217.38
5.5.260.0050.03617.38
5.5.250.0090.03417.18
5.5.240.0200.04216.99
5.5.230.0130.00314.08
5.5.220.0040.01113.76
5.5.210.0030.01113.82
5.5.200.0110.00013.96
5.5.190.0150.00013.95
5.5.180.0110.00414.20
5.5.170.0090.00613.86
5.5.160.0030.01013.92
5.5.150.0000.00813.84
5.5.140.0040.00813.79
5.5.130.0030.01313.58
5.5.120.0000.01914.04
5.5.110.0060.01013.88
5.5.100.0030.00914.22
5.5.90.0030.00714.04
5.5.80.0030.01214.03
5.5.70.0110.00613.64
5.5.60.0080.00813.93
5.5.50.0100.00614.13
5.5.40.0030.00914.27
5.5.30.0030.01013.87
5.5.20.0030.00713.80
5.5.10.0090.00313.54
5.5.00.0040.00813.93
5.4.450.0390.03015.49
5.4.440.0420.03415.48
5.4.430.0430.02815.54
5.4.420.0510.03215.41
5.4.410.0380.03215.28
5.4.400.0380.03215.32
5.4.390.0370.03315.29
5.4.380.0380.03015.28
5.4.370.0380.03015.31
5.4.360.0440.03115.17
5.4.350.0420.02815.32
5.4.340.0470.03015.44
5.4.330.0000.00811.50
5.4.320.0380.03115.32
5.4.310.0460.03315.33
5.4.300.0450.02915.38
5.4.290.0330.03815.38
5.4.280.0470.02915.40
5.4.270.0420.02615.39
5.4.260.0380.03015.31
5.4.250.0400.02515.25
5.4.240.0500.03815.32
5.4.230.0330.04115.33
5.4.220.0400.03215.38
5.4.210.0450.03115.18
5.4.200.0380.02815.37
5.4.190.0480.03015.31
5.4.180.0380.03315.25
5.4.170.0330.03315.43
5.4.160.0540.01815.30
5.4.150.0410.02715.31
5.4.140.0460.02314.05
5.4.130.0400.02514.05
5.4.120.0400.02914.03
5.4.110.0370.03314.03
5.4.100.0400.02714.04
5.4.90.0380.02614.07
5.4.80.0380.02813.89
5.4.70.0070.03714.06
5.4.60.0100.03513.91
5.4.50.0030.04014.01
5.4.40.0130.02313.99
5.4.30.0130.02813.83
5.4.20.0130.02214.01
5.4.10.0040.00711.50
5.4.00.0030.00511.50

preferences:
56.29 ms | 400 KiB | 5 Q