3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test extends Thread { public $callbackVar; public function run() { } } $test = new Test(); $callbackVar = function() { echo "Callback var invoked."; }; $test->callbackVar = $callbackVar; $test->callbackVar->__invoke();

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.4.20.0100.01017.88
8.4.10.0100.01017.53
8.3.140.0050.00316.79
8.3.130.0030.00618.70
8.3.120.0130.00618.96
8.3.110.0110.00020.94
8.3.100.0060.00324.06
8.3.90.0180.00026.77
8.3.80.0030.00617.97
8.3.70.0160.00618.43
8.3.60.0100.01018.31
8.3.50.0120.00322.00
8.3.40.0070.01518.79
8.3.30.0030.01020.38
8.3.20.0040.00420.25
8.3.10.0000.00822.14
8.3.00.0040.00422.43
8.2.260.0040.00420.52
8.2.250.0040.00418.47
8.2.240.0080.00017.29
8.2.230.0070.00422.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0070.00316.63
8.2.190.0120.00618.27
8.2.180.0040.01116.63
8.2.170.0070.00722.96
8.2.160.0100.00322.03
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0050.00319.77
8.2.110.0100.00022.07
8.2.100.0070.00717.66
8.2.90.0040.00419.27
8.2.80.0040.00419.40
8.2.70.0050.00317.50
8.2.60.0000.00817.68
8.2.50.0040.00418.07
8.2.40.0030.00617.96
8.2.30.0040.00417.93
8.2.20.0040.00417.61
8.2.10.0000.00717.65
8.2.00.0080.00317.66
8.1.310.0000.00818.36
8.1.300.0070.00718.41
8.1.290.0030.00630.84
8.1.280.0030.01325.92
8.1.270.0030.00624.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.74
8.1.230.0040.00819.22
8.1.220.0070.00017.79
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00217.51
8.1.180.0000.00819.14
8.1.170.0030.00618.51
8.1.160.0040.00422.14
8.1.150.0000.00718.48
8.1.140.0050.00217.35
8.1.130.0000.00717.34
8.1.120.0070.00017.43
8.1.110.0030.00517.32
8.1.100.0000.00717.35
8.1.90.0050.00217.39
8.1.80.0050.00217.44
8.1.70.0000.00717.32
8.1.60.0000.00917.45
8.1.50.0040.00417.40
8.1.40.0040.00417.48
8.1.30.0000.00717.44
8.1.20.0040.00417.58
8.1.10.0000.00817.41
8.1.00.0000.00817.45
8.0.300.0000.00718.77
8.0.290.0040.00417.05
8.0.280.0050.00318.44
8.0.270.0040.00416.89
8.0.260.0000.00616.88
8.0.250.0030.00316.98
8.0.240.0070.00016.90
8.0.230.0030.00616.90
8.0.220.0030.00316.82
8.0.210.0070.00016.98
8.0.200.0080.00317.02
8.0.190.0030.00316.90
8.0.180.0070.00016.98
8.0.170.0000.00716.89
8.0.160.0000.00716.89
8.0.150.0070.00016.89
8.0.140.0040.00416.80
8.0.130.0000.00513.37
8.0.120.0080.00016.81
8.0.110.0040.00416.92
8.0.100.0000.00716.83
8.0.90.0000.00717.02
8.0.80.0150.00616.90
8.0.70.0000.00716.94
8.0.60.0070.00016.73
8.0.50.0040.00417.05
8.0.30.0130.00917.13
8.0.20.0090.01117.40
8.0.10.0080.00016.89
8.0.00.0120.00816.76
7.4.330.0020.00215.00
7.4.320.0060.00016.45
7.4.300.0040.00416.34
7.4.290.0000.00716.41
7.4.280.0030.00316.41
7.4.270.0000.00716.50
7.4.260.0030.00316.44
7.4.250.0040.00416.45
7.4.240.0040.00316.42
7.4.230.0050.00216.29
7.4.220.0050.01516.54
7.4.210.0090.00616.55
7.4.200.0000.00716.61
7.4.190.0000.00716.66
7.4.160.0060.00916.40
7.4.150.0070.01117.40
7.4.140.0100.00917.86
7.4.130.0100.00916.41
7.4.120.0090.00916.65
7.4.110.0090.00916.52
7.4.100.0100.01016.46
7.4.90.0090.00916.54
7.4.80.0120.00919.39
7.4.70.0100.00716.48
7.4.60.0030.01416.48
7.4.50.0050.00316.46
7.4.40.0050.00722.77
7.4.30.0100.01016.59
7.4.10.0100.00714.46
7.4.00.0080.00714.97
7.3.330.0000.00613.28
7.3.320.0030.00313.34
7.3.310.0020.00516.26
7.3.300.0030.00316.15
7.3.290.0030.01716.25
7.3.280.0090.01116.31
7.3.270.0130.00317.40
7.3.260.0110.00616.35
7.3.250.0120.00516.39
7.3.240.0190.00316.26
7.3.230.0120.00616.39
7.3.210.0060.00916.61
7.3.200.0120.00619.39
7.3.190.0070.01016.38
7.3.180.0070.01016.43
7.3.170.0150.00616.36
7.3.160.0150.00016.45
7.3.130.0030.01714.90
7.3.120.0120.00514.83
7.3.110.0100.01014.93
7.3.100.0040.01114.96
7.3.90.0090.00614.81
7.3.80.0040.00414.67
7.3.70.0060.00614.85
7.3.60.0030.01014.90
7.3.50.0060.00314.63
7.3.40.0040.00814.79
7.3.30.0080.00314.94
7.3.20.0070.01016.76
7.3.10.0030.01316.39
7.3.00.0080.00616.59
7.2.330.0100.00916.37
7.2.320.0090.01216.27
7.2.310.0070.01116.52
7.2.300.0110.00616.59
7.2.290.0130.00316.43
7.2.260.0030.01515.12
7.2.250.0040.01114.79
7.2.240.0030.00815.09
7.2.230.0060.00615.16
7.2.220.0100.00314.78
7.2.210.0070.00714.91
7.2.200.0030.01014.79
7.2.190.0030.00614.67
7.2.180.0030.00614.97
7.2.170.0060.00614.59
7.2.160.0030.00714.61
7.2.150.0130.00316.90
7.2.140.0070.01016.71
7.2.130.0080.00316.84
7.2.120.0080.00816.47
7.2.110.0030.01416.82
7.2.100.0060.01016.86
7.2.90.0040.00716.73
7.2.80.0000.01916.61
7.2.70.0000.01616.94
7.2.60.0040.01016.62
7.2.50.0040.00716.75
7.2.40.0000.01216.82
7.2.30.0060.00916.86
7.2.20.0030.00916.73
7.2.10.0090.00616.90
7.2.00.0070.00716.95
7.1.330.0040.00715.62
7.1.320.0040.00415.60
7.1.310.0040.01115.65
7.1.300.0040.00415.53
7.1.290.0030.01015.57
7.1.280.0040.00815.33
7.1.270.0030.01315.57
7.1.260.0000.01415.68
7.1.250.0030.00915.21
7.1.240.0060.00315.59
7.1.230.0030.01015.65
7.1.220.0110.00315.51
7.1.210.0040.00715.56
7.1.200.0020.01215.58
7.1.190.0060.01015.57
7.1.180.0000.00815.56
7.1.170.0030.00815.58
7.1.160.0040.00715.21
7.1.150.0080.00815.29
7.1.140.0000.01315.72
7.1.130.0060.00615.30
7.1.120.0000.00915.59
7.1.110.0030.00615.74
7.1.100.0050.00816.75
7.1.90.0090.00315.53
7.1.80.0060.00615.71
7.1.70.0050.00516.27
7.1.60.0130.00517.47
7.1.50.0090.01216.14
7.1.40.0070.00315.63
7.1.30.0090.00315.79
7.1.20.0030.01015.50
7.1.10.0000.01115.65
7.1.00.0060.02018.86
7.0.330.0060.00314.93
7.0.320.0060.00915.21
7.0.310.0040.01115.21
7.0.300.0040.00415.29
7.0.290.0060.00315.23
7.0.280.0030.00615.05
7.0.270.0000.00815.21
7.0.260.0130.00015.40
7.0.250.0000.00915.33
7.0.240.0000.01015.31
7.0.230.0110.00315.51
7.0.220.0100.00315.04
7.0.210.0060.00615.21
7.0.200.0070.01015.81
7.0.190.0040.01415.14
7.0.180.0030.01015.20
7.0.170.0090.00315.40
7.0.160.0000.01315.32
7.0.150.0040.00715.28
7.0.140.0060.04018.59
7.0.130.0040.00815.04
7.0.120.0070.00715.25
7.0.110.0110.01617.72
7.0.100.0030.04617.60
7.0.90.0090.02217.52
7.0.80.0050.03117.68
7.0.70.0060.04317.51
7.0.60.0050.03017.66
7.0.50.0050.03517.65
7.0.40.0030.04316.41
7.0.30.0070.04516.72
7.0.20.0120.04016.59
7.0.10.0030.04516.47
7.0.00.0070.04716.50
5.6.400.0100.00314.20
5.6.390.0040.01114.04
5.6.380.0040.01114.14
5.6.370.0080.00413.90
5.6.360.0070.00714.43
5.6.350.0060.00914.38
5.6.340.0100.00314.27
5.6.330.0030.00614.02
5.6.320.0000.01314.55
5.6.310.0030.01013.89
5.6.300.0040.00414.01
5.6.290.0090.00614.34
5.6.280.0140.03117.68
5.6.270.0150.00014.33
5.6.260.0030.02117.34
5.6.250.0100.02417.54
5.6.240.0050.02617.39
5.6.230.0080.04317.26
5.6.220.0040.04317.20
5.6.210.0100.03117.41
5.6.200.0050.04717.36
5.6.190.0130.03317.50
5.6.180.0080.04217.35
5.6.170.0080.04017.44
5.6.160.0130.03717.43
5.6.150.0070.04417.63
5.6.140.0030.05017.42
5.6.130.0070.04517.41
5.6.120.0120.04217.36
5.6.110.0080.03817.44
5.6.100.0120.04017.35
5.6.90.0130.04017.36
5.6.80.0050.04516.99
5.6.70.0080.02817.04
5.6.60.0030.04317.03
5.6.50.0140.03717.01
5.6.40.0100.02716.97
5.6.30.0040.04417.09
5.6.20.0060.04616.99
5.6.10.0070.03717.03
5.6.00.0090.03517.06
5.5.380.0030.02615.85
5.5.370.0080.04315.83
5.5.360.0080.03215.76
5.5.350.0050.04115.70
5.5.340.0080.03716.22
5.5.330.0050.04615.93
5.5.320.0130.03816.31
5.5.310.0010.03016.28
5.5.300.0080.04015.98
5.5.290.0070.04015.98
5.5.280.0070.04315.89
5.5.270.0050.03215.91
5.5.260.0070.03716.01
5.5.250.0040.04415.82
5.5.240.0070.03015.75
5.5.230.0050.04015.72
5.5.220.0070.04215.69
5.5.210.0050.04615.64
5.5.200.0130.03715.44
5.5.190.0070.04315.74
5.5.180.0100.02315.56
5.5.170.0050.00313.79
5.5.160.0070.03715.78
5.5.150.0100.03815.85
5.5.140.0100.02815.68
5.5.130.0030.04715.68
5.5.120.0070.03515.87
5.5.110.0100.03515.65
5.5.100.0030.03115.69
5.5.90.0030.02815.70
5.5.80.0080.03815.48
5.5.70.0080.03315.61
5.5.60.0050.03315.63
5.5.50.0070.04215.51
5.5.40.0050.03915.70
5.5.30.0000.04515.54
5.5.20.0060.04115.54
5.5.10.0070.04015.77
5.5.00.0070.04315.72
5.4.450.0070.04015.21
5.4.440.0050.04415.03
5.4.430.0100.03715.00
5.4.420.0120.03515.01
5.4.410.0020.03015.07
5.4.400.0050.04314.86
5.4.390.0050.04014.93
5.4.380.0040.02814.98
5.4.370.0050.04014.89
5.4.360.0100.03314.73
5.4.350.0050.04314.87
5.4.340.0070.04014.95
5.4.330.0060.00610.71
5.4.320.0010.04014.94
5.4.310.0050.04214.94
5.4.300.0100.02414.81
5.4.290.0110.03914.94
5.4.280.0100.02514.91
5.4.270.0080.03714.84
5.4.260.0130.03214.75
5.4.250.0090.03814.86
5.4.240.0030.03614.93
5.4.230.0030.04014.92
5.4.220.0030.04514.93
5.4.210.0080.04015.00
5.4.200.0050.02314.79
5.4.190.0030.03714.82
5.4.180.0080.04014.85
5.4.170.0100.03514.85
5.4.160.0060.04114.83
5.4.150.0030.04314.78
5.4.140.0070.03713.68
5.4.130.0090.03613.50
5.4.120.0120.03513.57
5.4.110.0070.03513.56
5.4.100.0050.03813.60
5.4.90.0100.03513.76
5.4.80.0050.04013.73
5.4.70.0060.04013.73
5.4.60.0070.03513.64
5.4.50.0050.03313.38
5.4.40.0060.03813.51
5.4.30.0020.03213.63
5.4.20.0070.03513.70
5.4.10.0050.03513.60
5.4.00.0060.03713.41
5.3.290.0100.06714.70
5.3.280.0070.08314.64
5.3.270.0000.08314.64
5.3.260.0070.07014.64
5.3.250.0070.06714.64
5.3.240.0030.07314.64
5.3.230.0070.07314.64
5.3.220.0230.06014.70
5.3.210.0030.05014.64
5.3.200.0070.04314.66
5.3.190.0030.08314.64
5.3.180.0100.07014.69
5.3.170.0070.06014.70
5.3.160.0030.07714.64
5.3.150.0100.06314.64
5.3.140.0000.05014.64
5.3.130.0100.07014.64
5.3.120.0070.07014.64
5.3.110.0130.06014.78
5.3.100.0170.06314.64
5.3.90.0030.03714.64
5.3.80.0070.03314.64
5.3.70.0000.08714.64
5.3.60.0030.06014.64
5.3.50.0070.04314.64
5.3.40.0070.07014.64
5.3.30.0030.07314.64
5.3.20.0100.03714.64
5.3.10.0030.07314.64
5.3.00.0130.06314.64
5.2.170.0030.04714.64
5.2.160.0100.05714.64
5.2.150.0000.06714.64
5.2.140.0030.06314.64
5.2.130.0070.06314.64
5.2.120.0070.06014.64
5.2.110.0000.06714.64
5.2.100.0030.06014.64
5.2.90.0030.05314.64
5.2.80.0070.06014.64
5.2.70.0200.05314.64
5.2.60.0130.04714.64
5.2.50.0030.05314.64
5.2.40.0030.06014.64
5.2.30.0070.05314.64
5.2.20.0070.06014.64
5.2.10.0000.05014.64
5.2.00.0070.05714.64
5.1.60.0030.05314.64
5.1.50.0000.06014.64
5.1.40.0070.03314.64
5.1.30.0070.05014.64
5.1.20.0000.05014.64
5.1.10.0070.05314.64
5.1.00.0070.05014.64
5.0.50.0000.04314.64
5.0.40.0030.04314.64
5.0.30.0030.06314.64
5.0.20.0030.04314.64
5.0.10.0030.04014.64
5.0.00.0100.05714.64
4.4.90.0000.02314.64
4.4.80.0100.02314.64
4.4.70.0030.02314.64
4.4.60.0000.03714.64
4.4.50.0000.03714.64
4.4.40.0030.05014.64
4.4.30.0000.03014.64
4.4.20.0070.03014.64
4.4.10.0000.03714.64
4.4.00.0030.05014.64
4.3.110.0000.03014.64
4.3.100.0070.03014.64
4.3.90.0000.02014.64
4.3.80.0000.05314.64
4.3.70.0000.03014.64
4.3.60.0070.03014.64
4.3.50.0070.03014.64
4.3.40.0100.04314.64
4.3.30.0000.02714.64
4.3.20.0030.03014.64
4.3.10.0000.02714.64
4.3.00.0000.03314.64

preferences:
76.86 ms | 403 KiB | 5 Q