3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a() { return; } function b() { return true; } $start = microtime(true); for ($i = 0; $i<9999; $i++) { a(); } $end = microtime(true); echo "A :".($end-$start)."\n"; $start = microtime(true); for ($i = 0; $i<9999; $i++) { b(); } $end = microtime(true); echo "B :".($end-$start)."\n";

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)
7.4.00.0060.00914.89
7.3.120.0120.00915.13
7.3.110.0120.00914.63
7.3.100.0090.00915.02
7.3.90.0070.00714.97
7.3.80.0060.00614.76
7.3.70.0090.00615.01
7.3.60.0090.00614.88
7.3.50.0090.00614.84
7.3.40.0100.00714.59
7.3.30.0070.00714.82
7.3.20.0060.00916.38
7.3.10.0080.00516.55
7.3.00.0080.00716.44
7.2.250.0100.01015.25
7.2.240.0070.01114.91
7.2.230.0060.00915.21
7.2.220.0030.01315.23
7.2.210.0060.00615.22
7.2.200.0060.00915.21
7.2.190.0000.01515.12
7.2.180.0070.01014.89
7.2.170.0130.00315.09
7.2.130.0130.00316.77
7.2.120.0080.00616.77
7.2.110.0080.00816.93
7.2.100.0070.00716.95
7.2.90.0070.00716.96
7.2.80.0000.01217.01
7.2.70.0070.01016.81
7.2.60.0090.00616.73
7.2.50.0060.01216.75
7.2.40.0040.01117.02
7.2.30.0040.01116.96
7.2.20.0090.00617.04
7.2.10.0060.00917.06
7.2.00.0020.00918.02
7.1.330.0030.01415.76
7.1.320.0070.01015.51
7.1.310.0070.01015.54
7.1.300.0060.01315.80
7.1.290.0000.01515.59
7.1.280.0000.01715.74
7.1.270.0060.00915.66
7.1.260.0070.01015.68
7.1.250.0070.00715.46
7.1.240.0030.01015.69
7.1.230.0090.00615.84
7.1.220.0030.01515.66
7.1.210.0070.00715.64
7.1.200.0040.01515.82
7.1.190.0040.01115.44
7.1.180.0100.00715.77
7.1.170.0060.01315.55
7.1.160.0120.00015.93
7.1.150.0070.01015.77
7.1.140.0030.01015.95
7.1.130.0030.01315.68
7.1.120.0090.00615.85
7.1.110.0000.01415.88
7.1.100.0090.00615.81
7.1.90.0030.01215.82
7.1.80.0070.00415.64
7.1.70.0120.00316.59
7.1.60.0050.01117.58
7.1.50.0050.01516.37
7.1.40.0040.01115.77
7.1.30.0000.01215.72
7.1.20.0030.00715.96
7.1.10.0070.00315.97
7.1.00.0030.04018.99
7.0.330.0040.01115.38
7.0.320.0000.01615.31
7.0.310.0060.00915.36
7.0.300.0000.01815.44
7.0.290.0030.01015.27
7.0.280.0070.00315.18
7.0.270.0040.01115.53
7.0.260.0070.00715.32
7.0.250.0060.00915.47
7.0.240.0090.00615.50
7.0.230.0030.01315.48
7.0.220.0070.00315.43
7.0.210.0030.01515.18
7.0.200.0040.01116.04
7.0.190.0100.00315.54
7.0.180.0060.00615.23
7.0.170.0000.01815.55
7.0.160.0090.00615.57
7.0.150.0080.00815.30
7.0.140.0080.03818.65
7.0.130.0090.00615.47
7.0.120.0070.01015.46
7.0.110.0000.01415.55
7.0.100.0090.00015.52
7.0.90.0080.00815.58
7.0.80.0140.00015.38
7.0.70.0030.01415.31
7.0.60.0070.04218.50
7.0.50.0030.03318.82
7.0.40.0030.04416.78
7.0.30.0020.04616.63
7.0.20.0100.04516.84
7.0.10.0030.04416.81
7.0.00.0000.04816.82
5.6.380.0030.01314.39
5.6.370.0100.00714.28
5.6.360.0060.00914.35
5.6.350.0090.00914.34
5.6.340.0070.00714.55
5.6.330.0030.01514.31
5.6.320.0130.00314.33
5.6.310.0030.00914.38
5.6.300.0000.01714.22
5.6.290.0030.01314.40
5.6.280.0060.04317.54
5.6.270.0000.01214.23
5.6.260.0030.01314.30
5.6.250.0130.00714.43
5.6.240.0040.00814.48
5.6.230.0100.01014.20
5.6.220.0000.01314.24
5.6.210.0040.03817.44
5.6.200.0030.05017.60
5.6.190.0050.03617.68
5.6.180.0020.04917.89
5.6.170.0100.04617.60
5.6.160.0050.04117.63
5.6.150.0050.04617.71
5.6.140.0070.04117.67
5.6.130.0050.04717.68
5.6.120.0050.05017.48
5.6.110.0060.04817.65
5.6.100.0070.04817.71
5.6.90.0060.04617.67
5.6.80.0020.04717.28
5.6.70.0050.04317.18
5.6.60.0130.03817.39
5.6.50.0070.03817.32
5.6.40.0080.04017.26
5.6.30.0020.05017.22
5.6.20.0080.04117.28
5.6.10.0030.04717.26
5.6.00.0030.04717.39
5.5.380.0040.01511.16
5.5.370.0060.00910.91
5.5.360.0070.00311.08
5.5.350.0030.04515.72
5.5.340.0050.04315.95
5.5.330.0080.03216.09
5.5.320.0060.04115.98
5.5.310.0030.04816.01
5.5.300.0100.04015.93
5.5.290.0090.04715.92
5.5.280.0030.05116.00
5.5.270.0110.04215.82
5.5.260.0080.04416.02
5.5.250.0070.04115.84
5.5.240.0020.03115.52
5.5.230.0070.03315.78
5.5.220.0030.04515.56
5.5.210.0050.03915.58
5.5.200.0050.04515.64
5.5.190.0020.05015.52
5.5.180.0040.04415.73
5.5.170.0020.00711.33
5.5.160.0050.04115.73
5.5.150.0080.04315.67
5.5.140.0000.05215.52
5.5.130.0050.04415.68
5.5.120.0030.04515.36
5.5.110.0080.03015.61
5.5.100.0020.03115.44
5.5.90.0030.02715.48
5.5.80.0030.02315.61
5.5.70.0030.02815.56
5.5.60.0030.02315.40
5.5.50.0010.02615.68
5.5.40.0060.02015.60
5.5.30.0020.02515.62
5.5.20.0090.02415.66
5.5.10.0080.01615.49
5.5.00.0100.02315.52
5.4.450.0070.04315.19
5.4.440.0060.04315.43
5.4.430.0070.04215.15
5.4.420.0050.04415.26
5.4.410.0020.04915.12
5.4.400.0050.04214.98
5.4.390.0080.02914.97
5.4.380.0050.04415.03
5.4.370.0050.04415.06
5.4.360.0030.04515.13
5.4.350.0060.04515.05
5.4.340.0070.04315.03
5.4.330.0030.00910.88
5.4.320.0030.04514.85
5.4.310.0030.04014.97
5.4.300.0020.03914.86
5.4.290.0100.03514.91
5.4.280.0100.04014.93
5.4.270.0060.02614.78
5.4.260.0050.02514.85
5.4.250.0060.03415.15
5.4.240.0030.02615.03
5.4.230.0100.01815.14
5.4.220.0100.02315.00
5.4.210.0070.02415.02
5.4.200.0060.02715.10
5.4.190.0050.03414.90
5.4.180.0030.02215.00
5.4.170.0060.02015.01
5.4.160.0080.02315.20
5.4.150.0050.01714.96
5.4.140.0050.02013.60
5.4.130.0000.02213.71
5.4.120.0040.01913.61
5.4.110.0030.02013.75
5.4.100.0050.02013.61
5.4.90.0030.02613.73
5.4.80.0040.01913.76
5.4.70.0050.02313.84
5.4.60.0030.04213.58
5.4.50.0040.02913.53
5.4.40.0090.03813.70
5.4.30.0020.04213.74
5.4.20.0070.04513.74
5.4.10.0100.03513.60
5.4.00.0030.03213.38
5.3.290.0070.03812.65
5.3.280.0080.02012.61
5.3.270.0060.02012.60
5.3.260.0040.02312.66
5.3.250.0030.02012.63
5.3.240.0020.02212.51
5.3.230.0070.01812.58
5.3.220.0050.01612.41
5.3.210.0040.02012.51
5.3.200.0070.01912.54
5.3.190.0030.02312.41
5.3.180.0050.01812.60
5.3.170.0040.02412.51
5.3.160.0030.03412.64
5.3.150.0070.02612.59
5.3.140.0050.04412.64
5.3.130.0050.04612.60
5.3.120.0030.04512.50
5.3.110.0030.04212.54
5.3.100.0030.04512.33
5.3.90.0020.04812.26
5.3.80.0050.04112.09
5.3.70.0070.03912.21
5.3.60.0000.04512.20
5.3.50.0080.04012.23
5.3.40.0030.04012.19
5.3.30.0050.04412.25
5.3.20.0030.04412.10
5.3.10.0030.03811.88
5.3.00.0010.04211.85
5.2.170.0050.03710.32
5.2.160.0050.03610.40
5.2.150.0090.01910.45
5.2.140.0000.04210.37
5.2.130.0050.03510.17
5.2.120.0020.04010.32
5.2.110.0020.04210.34
5.2.100.0080.03710.24
5.2.90.0020.04210.18
5.2.80.0030.03710.21
5.2.70.0030.03910.24
5.2.60.0020.04010.03
5.2.50.0030.03810.15
5.2.40.0020.04110.26
5.2.30.0020.03910.20
5.2.20.0020.03810.15
5.2.10.0020.03710.06
5.2.00.0070.0359.96
5.1.60.0050.0339.55
5.1.50.0060.0349.53
5.1.40.0050.0339.53
5.1.30.0020.0379.69
5.1.20.0040.0389.74
5.1.10.0000.0409.46
5.1.00.0050.0309.60
5.0.50.0020.0339.20
5.0.40.0030.0309.20
5.0.30.0020.0459.20
5.0.20.0050.0289.20
5.0.10.0020.0339.20
5.0.00.0010.0419.20
4.4.90.0030.0289.20
4.4.80.0010.0349.20
4.4.70.0020.0309.20
4.4.60.0030.0289.20
4.4.50.0010.0269.20
4.4.40.0070.0369.20
4.4.30.0000.0339.20
4.4.20.0030.0259.20
4.4.10.0000.0329.20
4.4.00.0030.0389.20
4.3.110.0000.0299.20
4.3.100.0030.0299.20
4.3.90.0020.0279.20
4.3.80.0000.0399.20
4.3.70.0030.0289.20
4.3.60.0050.0279.20
4.3.50.0000.0309.20
4.3.40.0000.0409.20
4.3.30.0020.0289.20
4.3.20.0000.0329.20
4.3.10.0030.0309.20
4.3.00.0030.0309.20

preferences:
35.71 ms | 401 KiB | 5 Q