3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callback($callback) { $callback(); } $msg = "Hello, everyone"; $callback = function () use ($msg) { print "This is a closure use string value, msg is: $msg. <br />/n"; }; $msg = "Hello, everybody"; callback($callback);

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.0070.00718.29
8.3.50.0070.01421.08
8.3.40.0000.01518.97
8.3.30.0100.00719.02
8.3.20.0000.00720.14
8.3.10.0040.00423.71
8.3.00.0000.00819.26
8.2.180.0150.00016.72
8.2.170.0060.01222.96
8.2.160.0030.01320.44
8.2.150.0000.00824.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0080.00022.14
8.2.110.0090.00020.39
8.2.100.0040.00918.07
8.2.90.0040.00419.09
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0040.00418.07
8.2.40.0040.00419.86
8.2.30.0030.00618.10
8.2.20.0000.00817.61
8.2.10.0000.00818.05
8.2.00.0040.00417.73
8.1.280.0110.00425.92
8.1.270.0060.00323.97
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00323.82
8.1.230.0080.00319.09
8.1.220.0080.00017.80
8.1.210.0030.00518.77
8.1.200.0040.00417.23
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0080.00018.59
8.1.160.0040.00421.98
8.1.150.0040.00418.86
8.1.140.0000.00717.46
8.1.130.0000.00717.82
8.1.120.0050.00317.49
8.1.110.0060.00317.46
8.1.100.0000.00717.46
8.1.90.0050.00217.42
8.1.80.0040.00417.50
8.1.70.0000.00717.34
8.1.60.0050.00517.63
8.1.50.0000.00817.56
8.1.40.0040.00417.48
8.1.30.0040.00417.55
8.1.20.0080.00017.57
8.1.10.0000.00817.48
8.1.00.0000.00717.56
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.48
8.0.270.0070.00017.31
8.0.260.0030.00317.20
8.0.250.0070.00017.03
8.0.240.0090.00017.02
8.0.230.0070.00016.94
8.0.220.0060.00016.93
8.0.210.0070.00016.91
8.0.200.0000.00717.00
8.0.190.0000.00716.88
8.0.180.0000.00716.80
8.0.170.0040.00416.96
8.0.160.0000.00716.93
8.0.150.0000.00716.82
8.0.140.0070.00016.76
8.0.130.0050.00013.29
8.0.120.0030.00516.74
8.0.110.0070.00016.92
8.0.100.0050.00216.93
8.0.90.0030.00316.85
8.0.80.0030.01316.79
8.0.70.0040.00416.77
8.0.60.0040.00416.89
8.0.50.0040.00416.79
8.0.30.0150.00617.22
8.0.20.0070.01317.40
8.0.10.0030.00616.90
8.0.00.0080.00816.66
7.4.330.0060.00015.15
7.4.320.0000.00616.65
7.4.300.0030.00316.43
7.4.290.0070.00016.52
7.4.280.0030.00616.56
7.4.270.0030.00316.48
7.4.260.0070.00316.58
7.4.250.0050.00216.52
7.4.240.0030.00316.50
7.4.230.0070.00016.62
7.4.220.0180.00016.58
7.4.210.0120.00316.38
7.4.200.0000.00716.35
7.4.160.0060.01616.27
7.4.150.0150.00617.40
7.4.140.0090.00917.86
7.4.130.0060.01116.68
7.4.120.0130.00716.48
7.4.110.0100.01016.48
7.4.100.0110.00616.50
7.4.90.0060.01016.56
7.4.80.0070.01319.39
7.4.70.0030.01416.59
7.4.60.0030.01316.46
7.4.50.0080.00016.45
7.4.40.0030.01316.41
7.4.30.0030.01616.66
7.4.00.0060.00914.86
7.3.330.0000.00613.38
7.3.320.0030.00313.18
7.3.310.0000.00716.31
7.3.300.0070.00016.22
7.3.290.0050.00916.36
7.3.280.0050.01116.34
7.3.270.0160.01117.40
7.3.260.0120.00616.48
7.3.250.0130.00716.37
7.3.240.0130.00416.50
7.3.230.0030.01816.60
7.3.210.0120.00416.43
7.3.200.0060.00919.39
7.3.190.0070.01016.55
7.3.180.0060.01016.56
7.3.170.0070.01416.60
7.3.160.0110.00616.49
7.3.10.0150.00016.71
7.3.00.0000.01116.64
7.2.330.0070.01016.78
7.2.320.0070.01016.73
7.2.310.0060.01016.70
7.2.300.0070.01016.62
7.2.290.0180.00416.69
7.2.130.0100.00617.11
7.2.120.0070.00716.72
7.2.110.0040.01117.04
7.2.100.0040.00716.93
7.2.90.0130.00216.88
7.2.80.0090.00916.97
7.2.70.0180.00717.03
7.2.60.0060.00916.59
7.2.50.0090.00616.89
7.2.40.0130.00316.88
7.2.30.0060.01016.97
7.2.20.0130.00017.01
7.2.10.0060.00916.70
7.2.00.0040.00917.99
7.1.250.0030.01015.58
7.1.200.0060.00915.60
7.1.100.0000.01218.10
7.1.70.0000.00817.38
7.1.60.0120.01219.11
7.1.50.0110.01417.02
7.1.00.0070.06322.33
7.0.200.0040.00416.79
7.0.140.0030.07321.97
7.0.60.0230.07019.78
7.0.50.0000.09017.95
7.0.40.0070.04019.96
7.0.30.0270.04720.23
7.0.20.0200.04720.16
7.0.10.0130.04320.27
7.0.00.0030.05320.20
5.6.280.0030.07320.78
5.6.210.0070.08720.63
5.6.200.0070.08018.29
5.6.190.0100.07020.61
5.6.180.0230.03720.61
5.6.170.0200.04720.39
5.6.160.0070.05720.44
5.6.150.0000.04318.18
5.6.140.0000.04318.18
5.6.130.0100.08318.29
5.6.120.0030.07320.99
5.6.110.0200.07320.98
5.6.100.0000.04321.14
5.6.90.0030.07720.97
5.6.80.0100.06320.39
5.6.70.4070.03020.36
5.5.350.0170.07320.45
5.5.340.0070.08317.98
5.5.330.0030.05320.25
5.5.320.0370.06020.31
5.5.310.0130.04020.41
5.5.300.0030.08717.98
5.5.290.0070.07717.98
5.5.280.0100.08020.73
5.5.270.0170.06720.64
5.5.260.0030.08720.84
5.5.250.0000.09020.55
5.5.240.0300.05720.19
5.4.450.0300.06319.20
5.4.440.0300.04719.39
5.4.430.0370.05319.47
5.4.420.0330.07719.48
5.4.410.0300.04019.19
5.4.400.0300.03719.06
5.4.390.0370.04718.85
5.4.380.0330.06019.22
5.4.370.0330.04719.16
5.4.360.0200.05318.99
5.4.350.0300.04019.08
5.4.340.0300.06318.87
5.4.320.0270.03718.95
5.4.310.0370.06719.16
5.4.300.0230.05019.24
5.4.290.0370.06719.22
5.4.280.0300.06318.99
5.4.270.0370.06719.15
5.4.260.0270.06719.13
5.4.250.0300.07019.16
5.4.240.0300.07019.07
5.4.230.0300.06719.25
5.4.220.0330.06718.84
5.4.210.0200.04718.98
5.4.200.0300.07019.21
5.4.190.0330.07019.30
5.4.180.0300.06719.00
5.4.170.0370.05718.98
5.4.160.0230.07718.93
5.4.150.0270.06319.20
5.4.140.0270.05716.34
5.4.130.0200.04016.50
5.4.120.0270.06716.31
5.4.110.0300.07016.46
5.4.100.0300.04016.51
5.4.90.0370.06016.19
5.4.80.0370.06316.44
5.4.70.0300.06316.43
5.4.60.0330.04016.35
5.4.50.0300.05316.51
5.4.40.0230.05316.38
5.4.30.0270.04316.23
5.4.20.0270.05716.55
5.4.10.0400.06716.16
5.4.00.0300.05316.12
5.3.290.0230.04314.75
5.3.280.0300.07014.68
5.3.270.0400.06314.51
5.3.260.0270.04314.52
5.3.250.0230.04014.51
5.3.240.0230.05014.61
5.3.230.0270.07314.57
5.3.220.0230.03714.57
5.3.210.0300.07014.49
5.3.200.0270.04014.65
5.3.190.0300.07714.65
5.3.180.0330.07014.78
5.3.170.0230.05014.57
5.3.160.0300.06314.57
5.3.150.0370.06314.57
5.3.140.0270.04314.52
5.3.130.0270.07014.55
5.3.120.0330.05014.45
5.3.110.0330.05314.45
5.3.100.0330.07013.96
5.3.90.0230.05313.92
5.3.80.0500.04714.14
5.3.70.0270.06013.95
5.3.60.0300.05013.92
5.3.50.0270.07013.86
5.3.40.0400.06013.89
5.3.30.0300.06314.15
5.3.20.0200.04313.85
5.3.10.0370.08013.64
5.3.00.0230.03313.57
5.2.170.0300.06012.02
5.2.160.0270.06012.02
5.2.150.0200.03712.02
5.2.140.0230.05312.02
5.2.130.0230.05712.02
5.2.120.0200.03012.02
5.2.110.0200.02712.02
5.2.100.0370.04012.02
5.2.90.0270.02312.02
5.2.80.0300.05312.02
5.2.70.0230.04312.02
5.2.60.0200.03312.02
5.2.50.0270.03712.02
5.2.40.0200.04012.02
5.2.30.0170.03712.02
5.2.20.0270.05012.02
5.2.10.0170.06012.02
5.2.00.0230.05312.02
5.1.60.0200.03312.02
5.1.50.0230.04312.02
5.1.40.0200.05312.02
5.1.30.0230.03012.02
5.1.20.0200.03312.02
5.1.10.0230.04312.02
5.1.00.0200.05012.02
5.0.50.0100.03712.02
5.0.40.0170.03712.02
5.0.30.0200.06012.02
5.0.20.0100.02712.02
5.0.10.0070.03012.02
5.0.00.0130.02712.02
4.4.90.0100.02712.02
4.4.80.0070.03012.02
4.4.70.0170.03012.02
4.4.60.0130.02712.02
4.4.50.0100.02312.02
4.4.40.0200.03712.02
4.4.30.0030.02712.02
4.4.20.0130.03012.02
4.4.10.0130.02012.02
4.4.00.0130.02312.02
4.3.110.0100.03012.02
4.3.100.0130.02312.02
4.3.90.0070.02312.02
4.3.80.0130.04712.02
4.3.70.0130.03012.02
4.3.60.0070.02312.02
4.3.50.0070.03312.02
4.3.40.0070.03712.02
4.3.30.0130.01712.02
4.3.20.0030.02312.02
4.3.10.0070.02312.02
4.3.00.0030.03312.02

preferences:
40.03 ms | 401 KiB | 5 Q