3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(count(123)); //int(1) var_dump(count(new stdclass)); //int(1) var_dump(count('hello world')); //int(1) var_dump(count(null)); //int(0)

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.10.0090.00619.83
8.3.140.0030.00518.32
8.3.130.0000.01016.54
8.3.120.0040.00420.79
8.3.110.0080.00018.55
8.3.100.0060.00916.38
8.3.90.0180.00026.77
8.3.80.0090.00019.36
8.3.70.0120.00616.75
8.3.60.0060.01216.48
8.3.50.0070.00718.33
8.3.40.0100.00619.02
8.3.30.0110.00418.75
8.3.20.0060.00318.90
8.3.10.0040.00423.52
8.3.00.0080.00021.85
8.2.250.0130.00618.39
8.2.240.0110.00717.21
8.2.230.0040.00420.94
8.2.220.0030.00724.06
8.2.210.0040.00426.77
8.2.200.0040.00818.88
8.2.190.0090.00618.21
8.2.180.0160.00925.92
8.2.170.0080.00822.96
8.2.160.0070.00719.19
8.2.150.0080.00025.66
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00820.95
8.2.110.0140.00720.47
8.2.100.0070.00419.57
8.2.90.0030.00617.63
8.2.80.0040.00418.61
8.2.70.0040.00417.63
8.2.60.0090.00018.22
8.2.50.0080.00018.10
8.2.40.0000.00819.38
8.2.30.0070.00017.92
8.2.20.0050.00218.05
8.2.10.0040.00418.02
8.2.00.0080.00019.42
8.1.300.0090.00619.98
8.1.290.0040.00730.84
8.1.280.0140.00725.92
8.1.270.0080.00020.65
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0080.00024.02
8.1.230.0110.00020.90
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0050.00318.10
8.1.170.0050.00318.61
8.1.160.0000.00718.66
8.1.150.0050.00318.63
8.1.140.0000.00820.79
8.1.130.0000.00820.13
8.1.120.0020.00517.23
8.1.110.0070.00417.36
8.1.100.0080.00017.34
8.1.90.0000.00817.36
8.1.80.0060.00317.35
8.1.70.0040.00417.21
8.1.60.0030.00617.44
8.1.50.0080.00017.52
8.1.40.0040.00417.50
8.1.30.0080.00017.52
8.1.20.0060.00317.55
8.1.10.0110.00017.50
8.1.00.0060.00317.49
8.0.300.0000.00720.16
8.0.290.0040.00416.63
8.0.280.0000.00818.34
8.0.270.0050.00217.09
8.0.260.0070.00020.24
8.0.250.0030.00316.98
8.0.240.0030.00316.96
8.0.230.0070.00016.81
8.0.220.0070.00016.93
8.0.210.0030.00316.86
8.0.200.0030.00316.95
8.0.190.0040.00416.82
8.0.180.0070.00016.82
8.0.170.0000.00816.76
8.0.160.0040.00416.95
8.0.150.0040.00416.83
8.0.140.0000.00716.91
8.0.130.0000.00513.30
8.0.120.0050.00316.78
8.0.110.0070.00016.93
8.0.100.0000.00816.78
8.0.90.0040.00416.69
8.0.80.0120.00616.82
8.0.70.0050.00216.70
8.0.60.0040.00416.71
8.0.50.0000.00816.93
8.0.30.0090.00817.06
8.0.20.0110.00617.40
8.0.10.0030.00516.75
8.0.00.0090.01016.59
7.4.330.0050.00015.55
7.4.320.0060.00016.41
7.4.300.0030.00316.54
7.4.290.0030.00316.41
7.4.280.0000.00916.54
7.4.270.0030.00316.36
7.4.260.0030.00616.42
7.4.250.0030.00316.48
7.4.240.0040.00416.43
7.4.230.0030.00416.27
7.4.220.0040.00416.43
7.4.210.0040.01116.58
7.4.200.0000.00716.52
7.4.140.0110.00917.86
7.4.130.0080.00816.37
7.4.120.0100.01016.44
7.4.110.0230.00716.38
7.4.100.0110.00716.41
7.4.90.0150.00916.23
7.4.80.0190.01117.85
7.4.70.0200.00716.47
7.4.60.0200.00916.53
7.4.50.0180.00616.43
7.4.40.0100.01116.49
7.4.30.0200.01016.23
7.4.20.0130.01416.47
7.4.10.0130.01316.16
7.4.00.0060.01415.64
7.3.330.0050.00013.09
7.3.320.0050.00013.13
7.3.310.0040.00416.10
7.3.300.0000.00716.24
7.3.290.0000.00716.11
7.3.280.0040.01316.25
7.3.260.0080.00916.38
7.3.240.0120.00616.47
7.3.230.0100.00816.38
7.3.220.0150.01016.18
7.3.210.0110.01016.13
7.3.200.0240.00516.37
7.3.190.0240.00616.41
7.3.180.0170.01316.33
7.3.170.0150.01416.27
7.3.160.0100.01216.49
7.3.150.0070.02315.97
7.3.140.0200.00616.02
7.3.130.0200.00316.01
7.3.120.0100.01415.47
7.3.110.0140.00615.40
7.3.100.0140.00615.40
7.3.90.0130.00715.45
7.3.80.0100.01115.28
7.3.70.0070.01215.24
7.3.60.0100.01315.46
7.3.50.0080.01315.34
7.3.40.0110.00715.42
7.3.30.0110.01015.57
7.3.20.0110.01016.49
7.3.10.0070.01516.56
7.3.00.0140.00516.45
7.2.340.0130.01016.50
7.2.330.0090.01116.37
7.2.320.0190.00816.38
7.2.310.0220.00616.45
7.2.300.0160.00816.20
7.2.290.0100.01116.37
7.2.280.0170.01016.29
7.2.270.0120.00816.13
7.2.260.0090.01416.22
7.2.250.0160.01316.42
7.2.240.0170.00515.59
7.2.230.0120.01015.50
7.2.220.0110.00715.32
7.2.210.0040.01715.62
7.2.200.0120.01215.62
7.2.190.0120.01115.72
7.2.180.0110.01215.50
7.2.170.0100.01015.58
7.2.160.0130.01015.45
7.2.150.0110.01216.50
7.2.140.0080.01416.59
7.2.130.0080.01116.64
7.2.120.0040.01616.70
7.2.110.0130.00516.64
7.2.100.0230.01215.75
7.2.90.0700.00615.46
7.2.80.0750.00915.48
7.2.70.0730.00915.56
7.2.60.0720.00715.84
7.2.50.0720.00915.65
7.2.40.0700.00915.59
7.2.30.0730.00815.79
7.2.20.0790.01015.64
7.2.10.0830.00415.69
7.2.00.0940.01015.66
7.1.330.0180.00815.57
7.1.320.0230.00915.55
7.1.310.0230.00315.32
7.1.300.0150.01115.58
7.1.290.0210.00515.67
7.1.280.0150.01015.40
7.1.270.0120.01115.48
7.1.260.0140.01215.66
7.1.250.0130.01415.52
7.1.240.0330.00415.30
7.1.230.0180.01515.13
7.1.220.0500.01014.50
7.1.210.1190.00914.24
7.1.200.1110.00614.09
7.1.190.0980.00914.08
7.1.180.0970.00714.37
7.1.170.1160.01114.13
7.1.160.1380.00814.05
7.1.150.1120.00614.33
7.1.140.1040.00914.26
7.1.130.1100.00814.24
7.1.120.1220.00614.21
7.1.110.0980.01014.16
7.1.100.1130.00914.25
7.1.90.1190.00514.20
7.1.80.1110.00614.40
7.1.70.1160.00714.37
7.1.60.1290.01326.31
7.1.50.1600.01126.23
7.1.40.1660.02026.20
7.1.30.1770.00926.29
7.1.20.1700.00926.15
7.1.10.1580.00714.03
7.1.00.1190.00914.24
7.0.330.0280.00714.96
7.0.320.0250.01215.07
7.0.310.1110.00813.87
7.0.300.1010.00813.94
7.0.290.0450.00914.19
7.0.280.0970.00713.93
7.0.270.0430.00814.30
7.0.260.0410.01114.27
7.0.250.0440.00714.09
7.0.240.0430.00614.18
7.0.230.0410.00914.13
7.0.220.0440.00714.28
7.0.210.0370.01514.28
7.0.200.0310.01014.06
7.0.190.0430.01114.15
7.0.180.0430.00814.30
7.0.170.0410.01114.28
7.0.160.0420.00814.30
7.0.150.0470.00914.29
7.0.140.0410.01014.14
7.0.130.0330.00714.01
7.0.120.0500.01314.40
7.0.110.0610.00714.27
7.0.100.0380.00614.25
7.0.90.0500.00714.16
7.0.80.0390.01014.16
7.0.70.0380.01214.34
7.0.60.0420.00714.12
7.0.50.0510.00514.26
7.0.40.0360.00814.21
7.0.30.0340.00714.23
7.0.20.0420.01114.29
7.0.10.0350.01214.31
7.0.00.0420.00614.27
5.6.400.0220.01715.72
5.6.390.0220.01515.70
5.6.380.0220.00715.14
5.6.370.0140.01515.03
5.6.360.0240.00614.93
5.6.350.0170.01015.03
5.6.340.0190.01115.06
5.6.330.0190.01014.98
5.6.320.0150.01214.88
5.6.310.0190.01015.09
5.6.300.0160.00714.65
5.6.290.0240.00415.00
5.6.280.0210.00715.03
5.6.270.0180.00915.01
5.6.260.0080.01714.96
5.6.250.0170.01014.90
5.6.240.0190.00814.92
5.6.230.0130.01315.10
5.6.220.0170.01015.12
5.6.210.0200.00814.89
5.6.200.0210.00614.70
5.6.190.0170.01114.95
5.6.180.0180.01015.11
5.6.170.0170.00915.09
5.6.160.0180.00814.91
5.6.150.0210.00614.94
5.6.140.0240.00314.85
5.6.130.0180.00814.96
5.6.120.0200.00715.04
5.6.110.0190.01015.11
5.6.100.0160.01014.95
5.6.90.0190.01115.06
5.6.80.0110.01414.75
5.6.70.0130.01114.89
5.6.60.0150.00914.92
5.6.50.0140.01114.75
5.6.40.0180.00614.98
5.6.30.0190.01114.77
5.6.20.0140.00914.88
5.6.10.0150.01214.86
5.6.00.0190.00914.85
5.5.380.0140.01213.50
5.5.370.0160.00713.23
5.5.360.0120.01213.34
5.5.350.0150.00913.39
5.5.340.0190.00513.48
5.5.330.0190.00613.27
5.5.320.0170.00713.49
5.5.310.0160.00813.19
5.5.300.0180.00713.43
5.5.290.0190.00613.23
5.5.280.0180.00613.48
5.5.270.0190.00413.30
5.5.260.0170.00713.04
5.5.250.0150.00713.23
5.5.240.0140.01313.30
5.5.230.0160.00812.98
5.5.220.0190.00313.25
5.5.210.0180.00913.26
5.5.200.0140.01013.18
5.5.190.0160.01013.36
5.5.180.0130.00813.22
5.5.170.0190.00914.76
5.5.160.0210.00613.24
5.5.150.0160.00713.08
5.5.140.0130.01213.25
5.5.130.0140.01213.02
5.5.120.0140.01113.32
5.5.110.0110.01513.31
5.5.100.0170.00813.06
5.5.90.0190.00713.35
5.5.80.0100.01413.36
5.5.70.0150.00913.22
5.5.60.0230.00313.30
5.5.50.0100.01313.16
5.5.40.0140.01113.20
5.5.30.0190.00513.14
5.5.20.0100.01413.26
5.5.10.0070.01613.19
5.5.00.0170.00413.18
5.4.450.0140.00511.81
5.4.440.0140.00711.63
5.4.430.0150.00311.64
5.4.420.0210.00911.67
5.4.410.0120.00711.63
5.4.400.0150.00511.63
5.4.390.0140.00711.48
5.4.380.0150.00711.41
5.4.370.0090.01111.50
5.4.360.0140.00811.65
5.4.350.0120.00711.43
5.4.340.0150.00511.57
5.4.330.0100.01111.63
5.4.320.0170.00611.37
5.4.310.0170.00511.69
5.4.300.0160.00311.48
5.4.290.0120.00811.44
5.4.280.0100.01111.62
5.4.270.0180.00611.50
5.4.260.0140.01011.36
5.4.250.0100.01111.42
5.4.240.0130.01011.56
5.4.230.0100.01011.63
5.4.220.0090.00911.45
5.4.210.0120.00811.52
5.4.200.0160.00511.48
5.4.190.0140.00711.58
5.4.180.0130.00911.44
5.4.170.0120.01111.44
5.4.160.0150.00711.49
5.4.150.0120.00711.41
5.4.140.0160.00611.76
5.4.130.0150.00611.55
5.4.120.0110.01111.74
5.4.110.0140.00611.57
5.4.100.0150.00511.55
5.4.90.0080.01011.49
5.4.80.0150.00611.68
5.4.70.0150.00411.54
5.4.60.0140.00811.50
5.4.50.0140.00511.57
5.4.40.0100.00911.54
5.4.30.0120.00511.67
5.4.20.0050.01411.46
5.4.10.0110.00611.55
5.4.00.0130.00611.66
5.3.290.0110.01211.69
5.3.280.0130.00711.63
5.3.270.0140.00511.55
5.3.260.0120.00711.64
5.3.250.0150.00511.54
5.3.240.0170.00511.50
5.3.230.0160.00611.44
5.3.220.0190.00411.53
5.3.210.0100.01111.39
5.3.200.0110.00911.45
5.3.190.0180.00211.55
5.3.180.0160.00511.67
5.3.170.0140.00711.76
5.3.160.0120.01011.68
5.3.150.0080.01211.70
5.3.140.0050.01411.73
5.3.130.0150.00511.59
5.3.120.0120.00911.59
5.3.110.0160.00411.74
5.3.100.0120.00511.59
5.3.90.0080.01011.59
5.3.80.0130.00611.41
5.3.70.0140.00611.41
5.3.60.0120.00811.56
5.3.50.0140.00411.46
5.3.40.0140.00411.48
5.3.30.0120.00611.45
5.3.20.0130.00511.37
5.3.10.0130.00811.26
5.3.00.0080.01011.27
5.2.170.0140.00210.65
5.2.160.0080.01010.53
5.2.150.0060.00910.71
5.2.140.0130.00310.64
5.2.130.0060.01010.55
5.2.120.0100.00910.58
5.2.110.0140.00210.41
5.2.100.0100.00810.59
5.2.90.0070.00810.45
5.2.80.0140.00410.41
5.2.70.0110.00710.27
5.2.60.0110.00610.21
5.2.50.0060.01110.42
5.2.40.0100.00710.48
5.2.30.0080.00610.50
5.2.20.0060.00810.24
5.2.10.0110.00710.34
5.2.00.0110.00410.20
5.1.60.0090.00310.09
5.1.50.0100.00410.09
5.1.40.0070.00710.09
5.1.30.0080.00610.09
5.1.20.0120.00210.09
5.1.10.0090.00510.09
5.1.00.0120.00010.09
5.0.50.0090.00310.09
5.0.40.0050.00710.09
5.0.30.0050.00610.09
5.0.20.0050.00910.09
5.0.10.0070.00410.09
5.0.00.0090.00410.09
4.4.90.0060.00210.09
4.4.80.0030.00610.09
4.4.70.0090.00110.09
4.4.60.0060.00410.09
4.4.50.0060.00410.09
4.4.40.0060.00310.09
4.4.30.0030.00510.09
4.4.20.0070.00210.09
4.4.10.0080.00010.09
4.4.00.0030.00610.09
4.3.110.0000.00710.09
4.3.100.0090.00010.09
4.3.90.0050.00410.09
4.3.80.0050.00310.09
4.3.70.0050.00310.09
4.3.60.0050.00310.09
4.3.50.0050.00510.09
4.3.40.0070.00310.09
4.3.30.0060.00310.09
4.3.20.0030.00510.09
4.3.10.0020.00510.09
4.3.00.0070.00110.09

preferences:
36.05 ms | 403 KiB | 5 Q