3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = (function() { return function($a) { return $a + 42; }; })(); echo $foo(10);

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.43
8.4.10.0140.00717.22
8.3.150.0120.00617.18
8.3.140.0140.00416.72
8.3.130.0000.00918.35
8.3.120.0060.01020.70
8.3.110.0060.00320.94
8.3.100.0150.00018.22
8.3.90.0070.01126.77
8.3.80.0060.00318.43
8.3.70.0040.01118.55
8.3.60.0110.00618.43
8.3.50.0110.01122.79
8.3.40.0100.01018.63
8.3.30.0070.00719.03
8.3.20.0040.00420.33
8.3.10.0000.00721.78
8.3.00.0040.00419.79
8.2.270.0110.00717.05
8.2.260.0030.00519.02
8.2.250.0100.01018.30
8.2.240.0060.00319.14
8.2.230.0090.00022.58
8.2.220.0030.00624.06
8.2.210.0100.00726.77
8.2.200.0040.00416.50
8.2.190.0050.01018.31
8.2.180.0080.00818.54
8.2.170.0070.00722.96
8.2.160.0090.00622.12
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0000.00819.48
8.2.110.0050.00522.25
8.2.100.0090.00317.64
8.2.90.0030.00619.09
8.2.80.0070.00019.13
8.2.70.0050.00517.63
8.2.60.0050.00317.93
8.2.50.0060.00318.07
8.2.40.0030.00518.16
8.2.30.0030.00719.51
8.2.20.0070.00017.58
8.2.10.0020.00518.11
8.2.00.0070.00317.55
8.1.310.0080.00016.44
8.1.300.0060.00318.37
8.1.290.0090.00030.84
8.1.280.0140.00725.92
8.1.270.0040.00423.78
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00319.17
8.1.230.0040.00818.99
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0030.00617.35
8.1.190.0040.00417.53
8.1.180.0000.00818.10
8.1.170.0050.00318.44
8.1.160.0030.00618.95
8.1.150.0070.00018.80
8.1.140.0000.00717.45
8.1.130.0030.00317.83
8.1.120.0030.00317.45
8.1.110.0000.00917.35
8.1.100.0070.00017.36
8.1.90.0000.00817.43
8.1.80.0040.00417.35
8.1.70.0030.00317.32
8.1.60.0000.00717.61
8.1.50.0040.00417.56
8.1.40.0000.00817.52
8.1.30.0030.00517.66
8.1.20.0080.00017.67
8.1.10.0000.00717.44
8.1.00.0090.00017.54
8.0.300.0020.00518.77
8.0.290.0070.00017.18
8.0.280.0000.00718.46
8.0.270.0000.00717.30
8.0.260.0030.00317.32
8.0.250.0030.00316.99
8.0.240.0070.00016.91
8.0.230.0000.00716.78
8.0.220.0030.00316.79
8.0.210.0050.00216.81
8.0.200.0000.00716.86
8.0.190.0000.00716.92
8.0.180.0040.00416.90
8.0.170.0040.00416.78
8.0.160.0000.00716.96
8.0.150.0000.00916.92
8.0.140.0080.00016.84
8.0.130.0000.00713.29
8.0.120.0070.00016.86
8.0.110.0030.00616.72
8.0.100.0070.00016.95
8.0.90.0070.00016.93
8.0.80.0120.00316.86
8.0.70.0000.00816.91
8.0.60.0050.00216.86
8.0.50.0050.00216.77
8.0.30.0120.00416.82
8.0.20.0130.00617.40
8.0.10.0040.00417.00
8.0.00.0120.00716.62
7.4.330.0000.00515.13
7.4.320.0030.00316.52
7.4.300.0000.00616.57
7.4.290.0040.00416.50
7.4.280.0040.00416.43
7.4.270.0000.00816.51
7.4.260.0050.00516.54
7.4.250.0040.00416.55
7.4.240.0020.00616.59
7.4.230.0030.00316.35
7.4.220.0070.01116.46
7.4.210.0060.00916.71
7.4.200.0030.00316.61
7.4.160.0090.00616.32
7.4.150.0130.00417.40
7.4.140.0110.00617.86
7.4.130.0080.00916.51
7.4.120.0120.00516.57
7.4.110.0100.01016.58
7.4.100.0130.01016.34
7.4.90.0030.01416.49
7.4.80.0000.01619.39
7.4.70.0040.01216.74
7.4.60.0070.01016.58
7.4.50.0030.00616.33
7.4.40.0050.01116.33
7.4.30.0130.00316.53
7.4.00.0080.01014.86
7.3.330.0050.00213.08
7.3.320.0020.00213.30
7.3.310.0030.00316.20
7.3.300.0000.00716.30
7.3.290.0030.00316.27
7.3.280.0090.00916.24
7.3.270.0180.00017.40
7.3.260.0130.00416.34
7.3.250.0100.00916.47
7.3.240.0120.00916.66
7.3.230.0140.00316.40
7.3.210.0100.00616.54
7.3.200.0080.00819.39
7.3.190.0100.01216.67
7.3.180.0000.01616.56
7.3.170.0080.00816.28
7.3.160.0100.00716.48
7.3.120.0040.01314.86
7.3.110.0090.00714.70
7.3.100.0100.00614.96
7.3.90.0060.00614.73
7.3.80.0070.00914.88
7.3.70.0080.00514.69
7.3.60.0030.00914.78
7.3.50.0060.00714.53
7.3.40.0020.01114.65
7.3.30.0040.00914.53
7.3.20.0060.00516.66
7.3.10.0070.01016.33
7.3.00.0080.00616.51
7.2.330.0190.00416.42
7.2.320.0070.01116.48
7.2.310.0000.01616.69
7.2.300.0110.00716.60
7.2.290.0150.00916.70
7.2.250.0080.01014.89
7.2.240.0020.01515.11
7.2.230.0070.00814.89
7.2.220.0100.00615.02
7.2.210.0090.00515.04
7.2.200.0060.00915.00
7.2.190.0060.00814.92
7.2.180.0090.00814.93
7.2.170.0030.01114.77
7.2.160.0090.00614.93
7.2.150.0090.00916.95
7.2.140.0070.00716.87
7.2.130.0080.01216.75
7.2.120.0090.00516.31
7.2.110.0060.01016.51
7.2.100.0150.00316.34
7.2.90.0130.01016.34
7.2.80.0100.00716.52
7.2.70.0090.01016.60
7.2.60.0070.00716.73
7.2.50.0150.00616.97
7.2.40.0090.00816.55
7.2.30.0060.01116.60
7.2.20.0130.00716.71
7.2.10.0080.01216.56
7.2.00.0080.01017.82
7.1.330.0060.00915.71
7.1.320.0090.00615.72
7.1.310.0060.00815.71
7.1.300.0040.01315.58
7.1.290.0070.00615.55
7.1.280.0050.00715.60
7.1.270.0050.00815.61
7.1.260.0040.00715.54
7.1.250.0080.01015.30
7.1.240.0060.00915.85
7.1.230.0000.00915.43
7.1.220.0090.00315.72
7.1.210.0000.01015.66
7.1.200.0080.00715.50
7.1.190.0070.00715.78
7.1.180.0040.00815.70
7.1.170.0040.00915.63
7.1.160.0040.00815.84
7.1.150.0080.00315.72
7.1.140.0090.00615.59
7.1.130.0000.01515.72
7.1.120.0060.00315.74
7.1.110.0090.00615.89
7.1.100.0050.00716.90
7.1.90.0030.01015.75
7.1.80.0030.00715.67
7.1.70.0050.00616.31
7.1.60.0050.01417.49
7.1.50.0110.00516.42
7.1.40.0060.00915.33
7.1.30.0030.00615.77
7.1.20.0140.00015.45
7.1.10.0040.01115.60
7.1.00.0090.03718.86
7.0.330.0040.00815.20
7.0.320.0030.00615.43
7.0.310.0040.00415.55
7.0.300.0000.01315.31
7.0.290.0070.00715.44
7.0.280.0090.00015.47
7.0.270.0070.00715.38
7.0.260.0070.00715.36
7.0.250.0080.00515.41
7.0.240.0070.00715.38
7.0.230.0030.01315.38
7.0.220.0070.00715.15
7.0.210.0000.01315.44
7.0.200.0070.00515.93
7.0.190.0000.01415.44
7.0.180.0000.01415.17
7.0.170.0000.00915.31
7.0.160.0100.00315.31
7.0.150.0030.00915.40
7.0.140.0070.01618.74
7.0.130.0000.01615.22
7.0.120.0090.00615.08
7.0.110.0000.01115.41
7.0.100.0040.01115.45
7.0.90.0070.00715.21
7.0.80.0070.01015.48
7.0.70.0090.03018.58
7.0.60.0050.02418.39
7.0.50.0020.03118.75
7.0.40.0040.03116.70
7.0.30.0050.04616.79
7.0.20.0080.02316.77
7.0.10.0080.02216.76
7.0.00.0050.04816.53
5.6.400.0000.01313.89
5.6.390.0000.01214.24
5.6.380.0000.01714.31
5.6.370.0000.01614.09
5.6.360.0040.00714.28
5.6.350.0030.01014.13
5.6.340.0100.00314.28
5.6.330.0030.00714.13
5.6.320.0080.00614.01
5.6.310.0070.00314.24
5.6.300.0070.01013.98
5.6.290.0080.00414.38
5.6.280.0070.03817.44
5.6.270.0000.01114.30
5.6.260.0030.01014.21
5.6.250.0090.00613.93
5.6.240.0030.01214.13
5.6.230.0070.00714.11
5.6.220.0040.02717.46
5.6.210.0040.02417.39
5.6.200.0080.04317.59
5.6.190.0050.02517.67
5.6.180.0020.04817.53
5.6.170.0040.02717.54
5.6.160.0070.04517.63
5.6.150.0030.04817.56
5.6.140.0070.04217.60
5.6.130.0080.04317.49
5.6.120.0050.04617.52
5.6.110.0110.04017.53
5.6.100.0100.02217.51
5.6.90.0050.02517.55
5.6.80.0050.01917.25
5.6.70.0030.02517.32
5.6.60.0030.02617.21
5.6.50.0050.02317.26
5.6.40.0060.02317.19
5.6.30.0050.02517.24
5.6.20.0080.02117.30
5.6.10.0050.02317.19
5.6.00.0020.02717.13
5.5.380.0030.01013.98
5.5.370.0060.00913.87
5.5.360.0040.03417.16
5.5.350.0030.02617.38
5.5.340.0070.04317.47
5.5.330.0000.03317.39
5.5.320.0050.04617.44
5.5.310.0080.04417.43
5.5.300.0070.02517.43
5.5.290.0090.04317.42
5.5.280.0070.04717.32
5.5.270.0090.04217.51
5.5.260.0070.03517.38
5.5.250.0070.02417.36
5.5.240.0040.02017.10
5.5.230.0030.02517.16
5.5.220.0020.02717.02
5.5.210.0020.03217.24
5.5.200.0050.02217.15
5.5.190.0070.02216.94
5.5.180.0020.02517.09
5.5.170.0030.01014.02
5.5.160.0020.02617.01
5.5.150.0040.02517.09
5.5.140.0030.02017.15
5.5.130.0060.02817.07
5.5.120.0050.02017.06
5.5.110.0020.02417.05
5.5.100.0030.02017.17
5.5.90.0060.01816.93
5.5.80.0000.02517.04
5.5.70.0000.02717.11
5.5.60.0030.02217.04
5.5.50.0040.02417.03
5.5.40.0020.03417.03
5.5.30.0020.04317.11
5.5.20.0030.02816.96
5.5.10.0080.03216.90
5.5.00.0020.02517.09
5.4.450.0000.04916.12
5.4.440.0030.04616.11
5.4.430.0040.02516.07
5.4.420.0070.03316.12
5.4.410.0060.02016.06
5.4.400.0020.02315.86
5.4.390.0030.02215.87
5.4.380.0020.02215.99
5.4.370.0020.02315.99
5.4.360.0000.02815.95
5.4.350.0020.02315.91
5.4.340.0030.02315.99
5.4.330.0050.00212.87
5.4.320.0040.02715.95
5.4.310.0050.01816.01
5.4.300.0030.02116.00
5.4.290.0000.02516.01
5.4.280.0000.02515.84
5.4.270.0060.02015.87
5.4.260.0030.02015.99
5.4.250.0040.01915.90
5.4.240.0040.02015.96
5.4.230.0050.01515.88
5.4.220.0020.02015.97
5.4.210.0040.02115.92
5.4.200.0040.04015.94
5.4.190.0070.01715.87
5.4.180.0030.03515.99
5.4.170.0060.02115.88
5.4.160.0050.01715.91
5.4.150.0050.01815.99
5.4.140.0030.02414.63
5.4.130.0020.02414.58
5.4.120.0000.02114.66
5.4.110.0030.01914.62
5.4.100.0020.02414.68
5.4.90.0030.02214.70
5.4.80.0020.02214.67
5.4.70.0000.02114.70
5.4.60.0020.03014.56
5.4.50.0020.04114.65
5.4.40.0030.03714.66
5.4.30.0040.04214.65
5.4.20.0020.02714.66
5.4.10.0030.04114.66
5.4.00.0020.04014.36
5.3.290.0030.03714.76
5.3.280.0070.03014.57
5.3.270.0000.04314.73
5.3.260.0000.03714.58
5.3.250.0030.03314.66
5.3.240.0000.04714.53
5.3.230.0030.03314.65
5.3.220.0000.03014.56
5.3.210.0030.03314.54
5.3.200.0000.04014.62
5.3.190.0000.03714.66
5.3.180.0000.03314.55
5.3.170.0070.03014.57
5.3.160.0070.07314.53
5.3.150.0000.06314.64
5.3.140.0000.08014.58
5.3.130.0070.05314.50
5.3.120.0000.05014.58
5.3.110.0000.04014.47
5.3.100.0030.07014.14
5.3.90.0070.03314.08
5.3.80.0000.03714.14
5.3.70.0000.05014.09
5.3.60.0030.06713.95
5.3.50.0100.07014.09
5.3.40.0000.08013.97
5.3.30.0030.06713.96
5.3.20.0070.07713.81
5.3.10.0070.06313.72
5.3.00.0070.05013.54
5.2.170.0000.04012.21
5.2.160.0070.06012.21
5.2.150.0000.06712.21
5.2.140.0070.06012.21
5.2.130.0070.05012.21
5.2.120.0070.05712.21
5.2.110.0000.05312.21
5.2.100.0000.06312.21
5.2.90.0030.05712.21
5.2.80.0030.06312.21
5.2.70.0000.06712.21
5.2.60.0030.04712.21
5.2.50.0000.06012.21
5.2.40.0000.06012.21
5.2.30.0030.06312.21
5.2.20.0070.06012.21
5.2.10.0000.06312.21
5.2.00.0070.05712.21
5.1.60.0070.04712.21
5.1.50.0070.03712.21
5.1.40.0000.05712.21
5.1.30.0000.04312.21
5.1.20.0070.04012.21
5.1.10.0030.03312.21
5.1.00.0000.05712.21
5.0.50.0000.04712.21
5.0.40.0000.03312.21
5.0.30.0000.06712.21
5.0.20.0000.04012.21
5.0.10.0030.04312.21
5.0.00.0030.06712.21
4.4.90.0000.02712.21
4.4.80.0000.02312.21
4.4.70.0000.03712.21
4.4.60.0030.03012.21
4.4.50.0030.03312.21
4.4.40.0030.05012.21
4.4.30.0000.03712.21
4.4.20.0030.02012.21
4.4.10.0000.03712.21
4.4.00.0030.04312.21
4.3.110.0070.02312.21
4.3.100.0030.03312.21
4.3.90.0000.03712.21
4.3.80.0000.05012.21
4.3.70.0030.02712.21
4.3.60.0000.02712.21
4.3.50.0000.03312.21
4.3.40.0000.05012.21
4.3.30.0030.03312.21
4.3.20.0000.03312.21
4.3.10.0000.03312.21
4.3.00.0000.03312.21

preferences:
31.64 ms | 403 KiB | 5 Q